Something like Autotext is def what I'm looking for. I have a problem and a question however. Question: is there a way to integrate this so it's globally accessible so I don't have to change the language of a Java or Javascript file in order to use it?
My problem is I'm receiving an error and it's not working. I've attached a screenshot. I looked through the files for Autotext and don't see where (or even what) the problem might be, maybe someone can help?
Thanks again for all your ideas and help...
On Feb 1, 2008 11:49 AM, Hans-Jörg Bibiko bibiko@eva.mpg.de wrote:
On 01.02.2008, at 18:59, Daniel Stockman wrote:
On Feb 1, 2008, at 9:42 AM, Jamal Johnson wrote:
I'd like to be able to put my cursor on a word (in a JS file let's say) and have that word highlighted _everywhere_ else in the document making it very easy to find / see where it is. [...] Is this possible?
I dislike the idea of making the mouse cursor integral to a function of a text editor, so here's how you could approximate the behaviour via the keyboard (with menu path parenthesized):
- With the caret inside or bordering the target word, press
Control + W (Edit > Select > Word). Alternately, double-click the word itself.
Command + E (Edit > Find > Use Selection for Find)
Command + G (Edit > Find > Find Next)
Your selection will now jump to each instance of the desired word on each subsequent Command + G. It's not as whizbang as Aptana, but I often feel IDEs do a lot more than necessary for certain tasks.
I agree with Daniel.
But as a short note: By using TMTOOLS (an 'unofficial' hacker tool ;) one could do this. see my mail: http://comox.textdrive.com/pipermail/textmate/2007- October/022827.html
Cheers,
Hans
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 2 Feb 2008, at 23:49, Jamal Johnson wrote:
Something like Autotext is def what I'm looking for. I have a problem and a question however.
My problem is I'm receiving an error and it's not working. I've attached a screenshot. I looked through the files for Autotext and don't see where (or even what) the problem might be, maybe someone can help?
You need to install the TMTOOLS plug-in in beforehand. http://email.eva.mpg.de/~bibiko/downloads/textmate/
Question: is there a way to integrate this so it's globally accessible so I don't have to change the language of a Java or Javascript file in order to use it?
In principal: NO. There would be a way to change the syntax highlighting at runtime, i.e. find the tmlanguage file, rewrite it, reload all bundles, etc. but this is really an hack and it only works at your computer.
A interim and more general solution would be to use the 'Create HTML From Document / Selection With Line Numbers' approach. Before the text is send to 'doctohtml.rb' enclose your search pattern by a unique start and end tag; change 'doctohtml.rb' in such a way that these start and end tags are replaced by e.g. <span bgcolor=lightblue onclick="txmt://open?line=LINE;column=COLUMN"> and </span>. By doing so one should be able to see all instances of the search pattern and if one clicks at an instance one jumps to it.
Or if one only is interested to visualise all lines in an HTML window one could use my Hypersearch approach. It's based on the front end written by Henrik Nyh but instead of using grep it uses my onigrep (pure utf-8 Oniguruma regexp engine). Please note: onigrep and the Hyperserach bundle are still under construction!
Here two screenshots:
One can download it here: http://email.eva.mpg.de/~bibiko/downloads/ textmate/
Cheers,
Hans