2 Replies Last post: Feb 7, 2013 3:11 AM by meo  
Robert Bude Newbie 2 posts since
Feb 6, 2013
Currently Being Moderated

Feb 6, 2013 2:54 PM

plugin to use tools like sed, grep and so on on text selections ?

Hi,

 

Is there a plugin to use some external tool operations like "sed" or "grep" with a text selection per shortcut ?

 

i want to use sed for transforming some parts of code with a predifined shortcut.

Denis Zhdanov JetBrains 1,517 posts since
Oct 20, 2007
Currently Being Moderated
Feb 6, 2013 3:15 PM in response to: Robert Bude
Re: plugin to use tools like sed, grep and so on on text selections ?

AFAIK there is no such a plugin. However, there is an existing infrastructure for calling external commands from the IDE. It's even possible to use selected text as an input, the only remaining thing is to change the selection by external command output. I'd suggest you to have a look into this plugin which reliefs custom actions construction and already provides useful bundings to editor/document etc.

 

Denis

meo Novice 98 posts since
Nov 1, 2011
Currently Being Moderated
Feb 7, 2013 3:11 AM in response to: Robert Bude
Re: plugin to use tools like sed, grep and so on on text selections ?

if you want something little bit different

with this plugin http://plugins.jetbrains.com/plugin/?idea&pluginId=7173

you can create an action with shortcut, which will execute your own groovy script on selected text and transform it. There is already a template for that, so it is really easy,

More Like This

  • Retrieving data ...