Does anyone know if you can save your search results (in Find in Project dialog), as a text file?
I tried selecting items in the dialog and copy and pasting into a textmate document, but that doesn't work. I look at the manual online, and it doesn't say anything about saving your search results.
It would be nice to get my results into it's own file. My situation is that there are many instances of a particular email address(es) in some webforms, and I'd like to give a nice list (like the dialog has) to someone.
Thanks,
Kevin
On 16 Apr 2008, at 23:08, Kevin Ridgway wrote:
Does anyone know if you can save your search results (in Find in Project dialog), as a text file?
You can’t. Coincidentally I had (the first) feature request for this less than a month ago.
I tried selecting items in the dialog and copy and pasting into a textmate document, but that doesn't work.
I was considering making Edit → Copy with focus on the search results control work for this. My fear was the discoverability, but it seems you would have found it, so likely I will proceed along that path :)
Still not sure exactly what part of the results the user would expect to get on the clipboard though. Would you want the entire line of each match (which would be lines, plural, for multi-line searches)?
It would be nice to get my results into it's own file. My situation is that there are many instances of a particular email address(es) in some webforms, and I'd like to give a nice list (like the dialog has) to someone.
For now you can use find + grep in Terminal to produce the results, e.g.:
find ~/MyProject -name '*.html' -exec grep 'foo@bar.com' '{}' ;
You can give -H to grep to also output the file name, if you need it.
Allan,
Thanks for replying to this.
My recommendation would be to have the multi-lines copied to the clipboard, the user could cut out whatever they didn't want once they paste it into a new document.
I was able to select (highlighted blue), when I hit Command + A, so when that happened I assumed I was in business to get all the lines on my clipboard in one fell swoop, which is what I wanted.
Thanks for the tip on grep, I'll give that a shot. :)
-Kevin
On Wed, Apr 16, 2008 at 10:46 PM, Allan Odgaard throw-away-2@macromates.com wrote:
On 16 Apr 2008, at 23:08, Kevin Ridgway wrote:
Does anyone know if you can save your search results (in Find in Project dialog), as a text file?
You can't. Coincidentally I had (the first) feature request for this less than a month ago.
I tried selecting items in the dialog and copy and pasting into a textmate document, but that doesn't work.
I was considering making Edit → Copy with focus on the search results control work for this. My fear was the discoverability, but it seems you would have found it, so likely I will proceed along that path :)
Still not sure exactly what part of the results the user would expect to get on the clipboard though. Would you want the entire line of each match (which would be lines, plural, for multi-line searches)?
It would be nice to get my results into it's own file. My situation is that there are many instances of a particular email address(es) in some webforms, and I'd like to give a nice list (like the dialog has) to someone.
For now you can use find + grep in Terminal to produce the results, e.g.:
find ~/MyProject -name '*.html' -exec grep 'foo@bar.com' '{}' \;
You can give -H to grep to also output the file name, if you need it.
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
i have a question about search, find and replace. can i find&replace all the items from a specified folder and it's subfolders from a project? without dragging it to another project ofcourse. it's not something that i use often anyway, so don't consider it a feature request, don't want to delay the project :P
On Thu, Apr 17, 2008 at 6:16 AM, Kevin Ridgway kridgway@gmail.com wrote:
Allan,
Thanks for replying to this.
My recommendation would be to have the multi-lines copied to the clipboard, the user could cut out whatever they didn't want once they paste it into a new document.
I was able to select (highlighted blue), when I hit Command + A, so when that happened I assumed I was in business to get all the lines on my clipboard in one fell swoop, which is what I wanted.
Thanks for the tip on grep, I'll give that a shot. :)
-Kevin
On Wed, Apr 16, 2008 at 10:46 PM, Allan Odgaard throw-away-2@macromates.com wrote:
On 16 Apr 2008, at 23:08, Kevin Ridgway wrote:
Does anyone know if you can save your search results (in Find in Project dialog), as a text file?
You can't. Coincidentally I had (the first) feature request for this
less
than a month ago.
I tried selecting items in the dialog and copy and pasting into a textmate document, but that doesn't work.
I was considering making Edit → Copy with focus on the search results control work for this. My fear was the discoverability, but it seems you would have found it, so likely I will proceed along that path :)
Still not sure exactly what part of the results the user would expect
to
get on the clipboard though. Would you want the entire line of each
match
(which would be lines, plural, for multi-line searches)?
It would be nice to get my results into it's own file. My situation is that there are many instances of a particular email address(es) in some webforms, and I'd like to give a nice list (like the dialog has) to someone.
For now you can use find + grep in Terminal to produce the results,
e.g.:
find ~/MyProject -name '*.html' -exec grep 'foo@bar.com' '{}' \;
You can give -H to grep to also output the file name, if you need it.
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
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 18 Apr 2008, at 14:08, Baluta Cristian wrote:
i have a question about search, find and replace. can i find&replace all the items from a specified folder and it's subfolders from a project? without dragging it to another project ofcourse.
In 1.x you can only search the full project. Dragging an item from the project drawer to the TextMate dock icon though should be a rather simple gesture, in fact often simpler than using a file browser to pick the folder to search :)
Allan Odgaard wrote:
On 18 Apr 2008, at 14:08, Baluta Cristian wrote:
i have a question about search, find and replace. can i find&replace all the items from a specified folder and it's subfolders from a project? without dragging it to another project ofcourse.
In 1.x you can only search the full project. Dragging an item from the project drawer to the TextMate dock icon though should be a rather simple gesture, in fact often simpler than using a file browser to pick the folder to search :)
I have a similar request, and that is to limit project wide Find/Replace options to a filename pattern. I might want to find a string in all *.c files, for example, but not in *.h files.
On 17 Apr 2008, at 03:46, Allan Odgaard wrote:
For now you can use find + grep in Terminal to produce the results, e.g.:
find ~/MyProject -name '*.html' -exec grep 'foo@bar.com' '{}' ;
You can give -H to grep to also output the file name, if you need it.
I'd also recommend rak (or ack, which it's based on) for this and has a nicer syntax.
I'm hoping to do rak support into Textmate at some point and have discovered that this has already been done for ack (though I haven't had a chance to try it yet):
http://www.simplicidade.org/notes/archives/2008/03/search_in_proje.html
James