I use find in project frequently but I cant find how to set the text in the search dialog without either typing it or copy and pasting.
In Eclipse for example if you select a word in the editor and then initiate a find, the selected word will automatically be in the search dialog.
Im sure you must be able to do something like this but I cant figure out how.
Thanks Giorgio
Command-e is the Mac shortcut (most Mac apps that allow search follow this convention) for "put this here selection in the Find buffer".
I remember it as "Command-e goes before Command-f".
Walter
On Feb 6, 2011, at 4:29 PM, bertieBotts wrote:
I use find in project frequently but I cant find how to set the text in the search dialog without either typing it or copy and pasting.
In Eclipse for example if you select a word in the editor and then initiate a find, the selected word will automatically be in the search dialog.
Im sure you must be able to do something like this but I cant figure out how.
Thanks Giorgio -- View this message in context: http://old.nabble.com/find-in-project-help-tp30859083p30859083.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Thanks Walter. That certainly seems to work.
I wonder if there is a way of making it default to always using what is selected....
Giorgio
Not that I'm aware of. This convention is followed by lots of different applications on the Mac, though, so it's useful muscle- memory to develop. You can use it on Safar, BBEdit, TextEdit, Mail, etc. (I'm actually not sure where it *doesn't* work, it's so widespread in my experience.)
Walter
On Feb 6, 2011, at 5:43 PM, bertieBotts wrote:
Thanks Walter. That certainly seems to work.
I wonder if there is a way of making it default to always using what is selected....
Giorgio
-- View this message in context: http://old.nabble.com/find-in-project-help-tp30859083p30859491.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Feb 7, 2011, at 9:06 AM, Walter Lee Davis wrote:
Not that I'm aware of. This convention is followed by lots of different applications on the Mac, though, so it's useful muscle-memory to develop.
You might be interested in these:
⌘E - use the selection for Find ⇧⌘E - use the selection for Replace ⌘G - Find next ⇧⌘G - Find previous
I use ⌘E then ⌘G all the time. It’s so nice to not have to pull up a separate window for this.
You can use it on Safar, BBEdit, TextEdit, Mail, etc. (I'm actually not sure where it *doesn't* work, it's so widespread in my experience.)
These work in any Cocoa app. They won’t work in Carbon and X11 apps (like Firefox, Eclipse, MS Office) which is the main reason I don’t use them.
There are more, but I think most of them are TextMate specific. Take a look at the Edit → Find menu in TextMate to see them all.
⌘ + E works in Firefox
⌘ + F in Eclipse picks up the highlighted word/passage/statement and inserts it into search box.
I am sure there is a way to have TextMate work the way that Eclipse does, it would just require some Bundle work.
Mark
On Feb 7, 2011, at 6:23 AM, Rob McBroom wrote:
These work in any Cocoa app. They won’t work in Carbon and X11 apps (like Firefox, Eclipse, MS Office) which is the main reason I don’t use them.
⌘ + E works in Firefox .... if you hit ⌘ + F afterward. Kinda cheating. :)
⌘ + E, directly followed by ⌘ + G is just such a lovely combo.
Textmate's ^ + ⌘ + F and the shift modifier version feel like magic every time I use them.
On Mon, Feb 7, 2011 at 11:58 AM, Mark Jackson mrcodewizard@gmail.comwrote:
⌘ + E works in Firefox
⌘ + F in Eclipse picks up the highlighted word/passage/statement and inserts it into search box.
I am sure there is a way to have TextMate work the way that Eclipse does, it would just require some Bundle work.
Mark
On Feb 7, 2011, at 6:23 AM, Rob McBroom wrote:
These work in any Cocoa app. They won’t work in Carbon and X11 apps (like
Firefox, Eclipse, MS Office) which is the main reason I don’t use them.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate