Axel Liljencrantz | 1 Feb 2009 16:39
Picon

Re: strange binding problem



2009/1/14 Philip Ganchev <phil.ganchev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Mon, Jan 12, 2009 at 8:03 AM, Goran Josic <josicg-ZecRSD2H78cfv37vnLkPlQ@public.gmane.org> wrote:
> Hi guys,
>
> I have a strange problem.
> I used google but didn't found any useful information.
>
> In my .config/fish/config.fish I have:
>
> bind \cp history-search-backward
> bind \cn history-search-forward
>
> bind \e. history-token-search-backward
> bind \e: history-token-search-forward
>
> but the second two bindings are not working.
>
> What is strange is that they work if I type them as regular command.

Actually, none of these commands work for me as you typed them.
According to the help, they should be:

bind '"\C-p": history-search-backward'
bind '"\C-n": history-search-forward'
bind '"\M-.": history-token-search-backward'
bind '"\M-:": history-token-search-forward'

Those work fine for me.

Hi Philip,

Seems like you're running an older fish version?

Axel
 


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmncRDUWM+popnw@public.gmane.orgforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Philip Ganchev | 3 Feb 2009 01:50
Picon

Re: strange binding problem

On Sun, Feb 1, 2009 at 10:39 AM, Axel Liljencrantz
<liljencrantz@...> wrote:
>
>
> 2009/1/14 Philip Ganchev <phil.ganchev@...>
>>
...
>> Actually, none of these commands work for me as you typed them.
>> According to the help, they should be:
>>
>> bind '"\C-p": history-search-backward'
>> bind '"\C-n": history-search-forward'
>> bind '"\M-.": history-token-search-backward'
>> bind '"\M-:": history-token-search-forward'
>>
>> Those work fine for me.
>
> Hi Philip,
>
> Seems like you're running an older fish version?

Hi Axel! Great to see you back in action. It's impressive how many
emails you are able to answer in one day :-)

I must have been using an older version or something. Now I have
1.23.0, and the help and init files are updated with the new notation
(\cq, etc). The old notation does not work. Unfortunately, the new one
doesn't work either:

> bind \cq history-search-backward

Now press Control+q, nothing happens.

> bind \cq 'echo swimming'

Control+q, nothing happens.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
Goran Josic | 2 Feb 2009 09:42
Picon

Re: strange binding problem



Axel Liljencrantz wrote:


2009/1/14 Philip Ganchev <phil.ganchev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Mon, Jan 12, 2009 at 8:03 AM, Goran Josic <josicg-ZecRSD2H78cfv37vnLkPlQ@public.gmane.org> wrote:
> Hi guys,
>
> I have a strange problem.
> I used google but didn't found any useful information.
>
> In my .config/fish/config.fish I have:
>
> bind \cp history-search-backward
> bind \cn history-search-forward
>
> bind \e. history-token-search-backward
> bind \e: history-token-search-forward
>
> but the second two bindings are not working.
>
> What is strange is that they work if I type them as regular command.

Actually, none of these commands work for me as you typed them.
According to the help, they should be:

bind '"\C-p": history-search-backward'
bind '"\C-n": history-search-forward'
bind '"\M-.": history-token-search-backward'
bind '"\M-:": history-token-search-forward'

Those work fine for me.

Hi Philip,

Seems like you're running an older fish version?

Axel

I'm running the 1.23 version of fish shell. (on Archlinux).

 


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Axel Liljencrantz | 2 Feb 2009 16:04
Picon

Re: strange binding problem



2009/2/2 Goran Josic <josicg-ZecRSD2H78cfv37vnLkPlQ@public.gmane.org>


Axel Liljencrantz wrote:


2009/1/14 Philip Ganchev <phil.ganchev <at> gmail.com>

Those work fine for me.

Hi Philip,

Seems like you're running an older fish version?

Axel

I'm running the 1.23 version of fish shell. (on Archlinux).


That part was meant to Philip. Sorry for the confusion.

Axel
 


 


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Goran Josic | 14 Jan 2009 11:16
Picon

Re: strange binding problem



Thank you for replay...I tried to modify my config.fish according to your indications but the behavior is always the same.
The first two are working and the last two are not.

By the way according to the fish user help: http://www.fishshell.org/doc2/commands.html#bind

Alt-w can be written as \ew, and Control-x can be written as \cx

That's why I used the syntax \e. \e: and from command line both are working. They don't work from config.fish. And I cannot understand why.


Philip Ganchev wrote:
On Mon, Jan 12, 2009 at 8:03 AM, Goran Josic <josicg-ZecRSD2H78cfv37vnLkPlQ@public.gmane.org> wrote:
Hi guys, I have a strange problem. I used google but didn't found any useful information. In my .config/fish/config.fish I have: bind \cp history-search-backward bind \cn history-search-forward bind \e. history-token-search-backward bind \e: history-token-search-forward but the second two bindings are not working. What is strange is that they work if I type them as regular command.
Actually, none of these commands work for me as you typed them. According to the help, they should be: bind '"\C-p": history-search-backward' bind '"\C-n": history-search-forward' bind '"\M-.": history-token-search-backward' bind '"\M-:": history-token-search-forward' Those work fine for me. .
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users

Gmane