Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Occurrances in file of simple text // grep a file?
Occurrances in file of simple text // grep a file? [message #148074] Wed, 10 March 2004 17:26 Go to next message
Eclipse UserFriend
Originally posted by: chrismo.clabs.org

Is there a way to do an occurrances in file of the highlighted text even
though it's not a valid Java element?

Only way I can find to search on a generic piece of text is with the
Find/Replace dialog, one hit at a time ... how can I just grep the
current file?

--
Chris
http://clabs.org
Re: Occurrances in file of simple text // grep a file? [message #148132 is a reply to message #148074] Thu, 11 March 2004 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

"Search/File"

Sam Mesh - http://openrules.com
Re: Occurrances in file of simple text // grep a file? [message #148158 is a reply to message #148132] Thu, 11 March 2004 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chrismo.clabs.org

Sam Mesh wrote:
> "Search/File"

As far as I can get it to work, this searches the whole workspace. I
want a simple grep on the current file under a nice shortcut key, not
the whole workspace. Can I easily limit this to just the current file?

--
Chris
http://clabs.org
Re: Occurrances in file of simple text // grep a file? [message #148161 is a reply to message #148158] Thu, 11 March 2004 15:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

ctrl+F on the editor opened for the file.


--
Thanks, Rich Kulp

Re: Occurrances in file of simple text // grep a file? [message #148173 is a reply to message #148161] Thu, 11 March 2004 15:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chrismo.clabs.org

Rich Kulp wrote:
> ctrl+F on the editor opened for the file.

Yes, but this won't give me a dump of all hits in the Search box like
the Java Search does. I want "Occurrances in File" functionality not
restricted to valid Java members.

--
Chris
http://clabs.org
Re: Occurrances in file of simple text // grep a file? [message #148219 is a reply to message #148173] Thu, 11 March 2004 22:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

1. Select your file in any explorer.
2. "Search/File" + check "Selected Resources"

PS. Sorry, don't know shortcut...
--
Sam Mesh - http://openrules.com
Re: Occurrances in file of simple text // grep a file? [message #148859 is a reply to message #148219] Tue, 16 March 2004 14:54 Go to previous message
Eclipse UserFriend
Originally posted by: chrismo.clabs.org

Sam Mesh wrote:
> 1. Select your file in any explorer.
> 2. "Search/File" + check "Selected Resources"

Ah, cool. Not exactly what I was hoping for (still have to go select the
file in an explorer first), but I didn't know about this and this could
certainly come in handy. Thx!

--
Chris
http://clabs.org
Previous Topic:changing templates and javadoc tags in eclipse
Next Topic:read write file problem
Goto Forum:
  


Current Time: Thu Nov 14 10:17:33 GMT 2024

Powered by FUDForum. Page generated in 0.03435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top