Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Substituting grep (and other) output to open files in Vim



On Tue, May 10, 2011 at 20:58, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:

> Okay.  The reason I asked, and it's validated by the responses, is that
> maybe you can handle this functionality at a different layer than Zsh.

On any given day, I am using Yakuake and Terminator. Every other day,
Konsole as well. At least once a week ttys & gpm. Doing this outside
of zsh is not an option ;)


> 1. highlight text w/ mouse
> 2. Ctrl+right click
> 3. pick the "launch in vim" option (provided by a hypothetical Perl
> extension)

If that works for you, great! Personally, I don't like to touch the
rodent more than necessary and right-clicking and selecting an option
takes longer than typing a few commands.


> Or, you could run `make` from within Vim itself which already handles a lot
> of these type of problems.  (That one really depends on the workflow and/or
> source.)

Does not work for grep etc.


> Not really trying to dissuade you from the pretty-straightforward Zsh
> solution.  Just wanted to point out some possibilities (and double-check
> that it wasn't as simple as the array-vs.-string thing).

Aye; thanks :)


Richard



Messages sorted by: Reverse Date, Date, Thread, Author