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 requested is to 'catch the next symbol'
> option, which will be useful for operators and replace modes.


I think these are both excellent suggestions by Maxim for new features
in fish that would be useful to simplify & optimise some things in my
vi-mode bindings.

For the suggestion of an option to catch the next symbol, I think that
bind '' func would be enough if func can determine which key was
pressed. Passing the key in as a parameter would make sense, but would
likely break existing code, so perhaps a special variable could be
introduced for this purpose? If there is already a way to do this that
I've missed let me know, but as far as I can tell self-insert is the
only function that can do this.

There is still also the caveat that if '' is not bound to self-insert
then commandline -f repaint doesn't repaint the prompt, which would
need to be fixed before I could make use of it.


Another feature I'd like is a way to temporarily suppress the
auto-suggestion feature. It's a bit out of place in vi normal mode,
and can obscure the results of the change-case commands if a
suggestion is already being displayed. I see there is already a
suppress_autosuggestion variable which is set when pressing backspace
- it would be great if I could set that with something like
commandline -f suppress_autosuggestion when leaving insert mode. I
personally don't mind whether I have to explicitly re-enable it or
just wait until it is implicitly re-enabled next time a character is
inserted.

Cheers,
-Ian



-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
On the day *I* go to work for Microsoft, faint oinking sounds will be
heard from far overhead, the moon will not merely turn blue but
develop polkadots, and hell will freeze over so solid the brimstone
will go superconductive.
     -- Eric S. Raymond, 2005
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to