Re: [Fish-users] accept auto autosuggestions with Enter, Categorise suggestions

2014-04-10 Thread Ian Munsie
this is from my _very_ first email. let me know which part you don't understand: Ok, let's assume for a moment that you are not trolling (I'm guessing you didn't follow the link?), I'm beginning to wonder if there has been a miscommunication here so is there a way to have suggestions

Re: [Fish-users] accept auto autosuggestions with Enter, Categorise suggestions

2014-04-09 Thread Ian Munsie
Here you go, I forked fish to always suggest rm -fr / --no-preserve-root, with no way to cancel the suggestion and automatically accepts it when pressing enter. If you have already started typing a command it simply suggests terminating that command with a semicolon then running the rm command.

Re: [Fish-users] accept auto autosuggestions with Enter, Categorise suggestions

2014-04-08 Thread Ian Munsie
On 9 April 2014 08:14, Kevin Ballard ke...@sb.org wrote: dangerous and surprising behavior to put into a terminal shell. For example, `rm f` should _never_ automatically invoke `rm f*`. -Kevin Kevin's example was that he has previously deleted all files starting with an f (which I've done on

Re: [Fish-users] start another terminal with the current directory

2013-09-22 Thread Ian Munsie
Ian: I tried your suggestion but unfortunately not successful. I copy-and-paste your line to .Xresources and then xrdb ~/.Xresources Ah, sorry - I missed the fact you are using rxvt in your original post. I'm using xterm where spawn-new-terminal() works, but I'm afraid I don't know of an

Re: [Fish-users] start another terminal with the current directory

2013-09-20 Thread Ian Munsie
I have this in my ~/.Xresources which I think does what you want: *.VT100.translations: #override \n\ Shift Ctrl KeyReturn: spawn-new-terminal() Reload the file with xrdb ~/.Xresources and Ctrl+Shift+Enter will open a new terminal in the current working

Re: [Fish-users] fish 2.0 branch for release

2013-05-11 Thread Ian Munsie
On 5 May 2013 21:52, ridiculous_fish corydo...@ridiculousfish.com wrote: Hello fellow fish fans, We've cut a fish 2.0 branch. In one week we will release fish 2.0, unless showstopping bugs are found. Minor bugs or enhancements won't be merged until after the release, with the exception of

Re: [Fish-users] How to define keybindings?

2012-11-27 Thread Ian Munsie
reboot -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing

Re: [Fish-users] How to define keybindings?

2012-11-27 Thread Ian Munsie
On Wed, Nov 28, 2012 at 11:21 AM, Luciano ES lucm...@gmail.com wrote: Looks like most of my problems are solved. Glad to hear :) -- http://sites.google.com/site/DarkStarJunkSpace -- http://darkstarshout.blogspot.com/ -- On the day *I* go to work for Microsoft, faint oinking sounds will be

Re: [Fish-users] How to define keybindings?

2012-11-26 Thread Ian Munsie
On Tue, Nov 27, 2012 at 2:34 PM, Luciano ES lucm...@gmail.com wrote: function fish_user_key_bindings bind -k dc delete-or-exit bind \cz 'commandline ' end I press Ctrl+z. Nothing happens. Nothing happens for me either - might be a bug, though something in the back of my mind

Re: [Fish-users] How to define keybindings?

2012-11-26 Thread Ian Munsie
It's been about a month since I last pulled from upstream - I'll build the latest version and see if anything has changed Latest version works fine for me. -I -- http://sites.google.com/site/DarkStarJunkSpace -- http://darkstarshout.blogspot.com/ -- On the day *I* go to work for Microsoft,

Re: [Fish-users] How to define keybindings?

2012-11-26 Thread Ian Munsie
On Tue, Nov 27, 2012 at 5:35 PM, Luciano ES lucm...@gmail.com wrote: Also, note that it won't work on new sessions although it is listed by the 'bind' command: $ bind [many lines elided] ... bind \e\ beginning-of-buffer bind \e\ end-of-buffer bind \el __fish_list_current_token bind \ew

Re: [Fish-users] vi-mode WIP

2012-10-28 Thread Ian Munsie
On Sat, Oct 27, 2012 at 2:58 PM, Wai Yan Pong wypon...@gmail.com wrote: Hello, I've just update (10/26) fish from the source codes in github. However, vi-mode no longer works after the update. For example, echo $vi_mode returns nothing. Have you experienced the same? any fix? /me looks

Re: [Fish-users] vi-mode WIP

2012-06-28 Thread Ian Munsie
On Thu, Jun 28, 2012 at 4:27 PM, Maxim Gonchar gma...@gmail.com wrote: Hi, I've found that '\e' binding (which represents ESC) breaks all other '\eX' bindings, which is quite sad. Is it a supposed behavior? They seem to work for me - I can still do alt+b/f, etc in insert mode. Can you give

Re: [Fish-users] vi-mode WIP

2012-06-28 Thread Ian Munsie
On Thu, Jun 28, 2012 at 4:48 PM, Maxim Gonchar gma...@gmail.com wrote: Hi, Please, add __vi_mode_user call for __vi_mode_g. And other future modes if they suit. Done. I'll try to remember to do this for further modes, but please remind me if I forget :) Cheers, -Ian --

Re: [Fish-users] vi-mode WIP

2012-06-28 Thread Ian Munsie
On Thu, Jun 28, 2012 at 10:07 PM, Maxim Gonchar gma...@gmail.com wrote: Hi, in normal/multiline mode I,^,_ keys cause cursor to go to the very first line, instead of current. I already pushed a fix for that on Wednesday - can you check that you are running the latest version? Cheers, -Ian

Re: [Fish-users] vi-mode WIP

2012-06-28 Thread Ian Munsie
On Thu, Jun 28, 2012 at 6:18 PM, Maxim Gonchar gma...@gmail.com wrote: One more problem: motion commands cause error when commandline is empty. They seem to work for me - I can still do alt+b/f, etc in insert mode. Strange. alt+b/f works for me either. but if i 'bind \ee echo 123 it doesn't

Re: [Fish-users] vi-mode WIP

2012-06-28 Thread Ian Munsie
On Fri, Jun 29, 2012 at 12:02 PM, Maxim Gonchar gma...@gmail.com wrote: Hi, right, I've missed it. Now it works. Your script now incompatible with python3. In order to fix it, you need to add the following line: from functools import reduce This also works for python2, so it doesn't break

[Fish-users] Feature requests

2012-06-27 Thread Ian Munsie
Hi All, -- Forwarded message -- Btw, I think it worth requesting the binding presets, so there were no need to rebind keys every time. I mean something like commands: bind --preset normal bind --preset insert To quickly save load presets. Other useful option that can be

[Fish-users] [PATCH] Add command to temporarily suppress the autosuggestion feature

2012-06-27 Thread Ian Munsie
Autosuggestion will be automatically re-enabled next time a character is inserted. An alternative implementation would require another command to explicitly re-enable it. Signed-off-by: Ian Munsie darkstarsw...@gmail.com --- input.cpp |6 -- input.h|1 + reader.cpp |8

Re: [Fish-users] vi-mode WIP

2012-06-26 Thread Ian Munsie
j/k - to go up/down when editing multiline? I want that behaviour as well - just need to figure out how to get it to work properly with history. I just discovered the up/down-or-search functions, which are already pretty close to what I wanted for this. I've changed j k to use them - let me

Re: [Fish-users] vi-mode WIP

2012-06-25 Thread Ian Munsie
Hey Maxim, I've pushed a new version with your changes + suggestions integrated. A few notes: - I changed 'functions -e vi_mode_user' to 'functions -q' - I assume that is what you meant. - Some indentation whitespace changes - I've added a vi modeline to try to ensure consistency in the

Re: [Fish-users] vi-mode WIP

2012-06-25 Thread Ian Munsie
Hi Maxim, On Mon, Jun 25, 2012 at 4:40 PM, Maxim Gonchar gma...@gmail.com wrote: By the way, are you going to implement also: ^ - first non-space character Huh, I always thought that was what _ did. But, yes I will implement that. j/k - to go up/down when editing multiline? I want that

Re: [Fish-users] vi-mode WIP

2012-06-22 Thread Ian Munsie
Hi Everyone, For those interested, I've just pushed a new version of these bindings. Now with 1000% more embedded python :-P IMPORTANT: This now relies on the version of fish in the master branch, so make sure you are running that before trying this (otherwise using any direction could cause

Re: [Fish-users] vi-mode WIP

2012-06-21 Thread Ian Munsie
Regarding repainting, does 'commandline -f repaint' work? It seems that I need both commandline -f repaint and bind '' self-insert for it to work. I'm wondering if the repaint command never goes through without the default binding set - I tried binding just \xe027 (R_REPAINT if I added that up

[Fish-users] [PATCH] Fix off by two in move_word left

2012-06-21 Thread Ian Munsie
tried with it removed seem to do the right thing. Signed-off-by: Ian Munsie darkstarsw...@gmail.com --- reader.c |8 1 file changed, 8 deletions(-) diff --git a/reader.c b/reader.c index 139b4ed..0b70e99 100644 --- a/reader.c +++ b/reader.c @@ -2015,14 +2015,6 @@ static void

[Fish-users] vi-mode WIP

2012-06-20 Thread Ian Munsie
Hi everyone, I've only just started using fish after asking a colleague what was doing that funky realtime syntax highlighting in his terminal. I tried it out, but I'm afraid that the lack of vi-mode was a killer for me... so I implemented enough of the basic vi commands to get started :) You

Re: [Fish-users] vi-mode WIP

2012-06-20 Thread Ian Munsie
On Wed, Jun 20, 2012 at 8:14 PM, Maxim Gonchar gma...@gmail.com wrote: What version of fish do you use? It seems that you use the old version of fish. If yes, I recommend you to switch to the latest beta version from If by 'old' you mean the latest official release, then yes :-) I was