Re: [Fish-users] please help: GNU Fish, key bindings---sorry to disturb you!

2012-01-09 Thread SanskritFritz
On Mon, Jan 9, 2012 at 10:32 PM, Stestagg  wrote:
>
> bind \cp "commandline -a '|less'"

Rather
bind \eg "commandline -a '|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


Re: [Fish-users] please help: GNU Fish, key bindings---sorry to disturb you!

2012-01-09 Thread SanskritFritz
On Mon, Jan 9, 2012 at 8:02 AM, HTY  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


Re: [Fish-users] please help: GNU Fish, key bindings---sorry to disturb you!

2012-01-09 Thread Stestagg
Hi


Hi

Don't worry, we've had several similar questions before.

This should work for you:

bind \cp "commandline -a '|less'"

Thanks

Steve Stagg

On Mon, Jan 9, 2012 at 7:02 AM, HTY  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!
>
> --
> Hormetjan Yiltiz
> Department of Psychology
> Peking University, China
> 100871
>
>
> --
> 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
>
--
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


[Fish-users] please help: GNU Fish, key bindings---sorry to disturb you!

2012-01-09 Thread HTY
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!

--
Hormetjan Yiltiz
Department of Psychology
Peking University, China
100871

--
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