On Mon, Jan 9, 2012 at 8:02 AM, HTY <hyil...@gmail.com> wrote:
> I am new to Fish and have some problems adding some features to it. I am
> sorry to mail you knowing you are, in fact, not in the responsibility
> for technical support, but your email address is the only one I could
> find in fish's documentation. I wanted to do something like this: while
> pressed Alt(\e)+p, fish adds a "|less" under the cursor in the command
> line. So I wanted to bind Alt(\e)+g to something like "|grep", but the
> command: bind \eg "\|grep" or anything I could think of did not work.
> Wish you could spare a time for it, please!

You have to define a function like __fish_grep, similar to
__fish_paginate in /usr/share/fish/functions/__fish_paginate.fish and
bind it to Alt-G like this:
bind \eg '__fish_grep'

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to