"Greg Reagle" <greg.rea...@umbc.edu> writes: Hi Greg,
> The above function sends "Hello" to standard output, it does not > insert it into the command line. There is a command called > 'commandline' for this purpose. Ah, that's it: function insert_file_fzf commandline -a (fzf --layout=reverse-list) end bind \co insert_file_fzf >> Instead of a keybinding, I also tried defining an abbr __ for '(fzf >> --options...)' but here the problem is that abbrevs expand only when >> they start a command, not when they are in the end or middle of a >> command. > > If you want a shortcut that doesn't have to be at the beginning, see > https://github.com/fish-shell/fish-shell/issues/1963#issuecomment-447554937 > and > https://github.com/fish-shell/fish-shell/issues/1963#issuecomment-93775067 > and read the entire issue with all the comments to learn more. Thanks for the pointer! >> And while we are at the command line editor: is there no "command >> insert mode" where I could check out which editor commands are there >> and how they are named by tab-completing, e.g., what ZSH has bound to >> M-x. > > I don't understand what you are asking (I haven't used zsh). Try the > 'bind' command without any arguments or options to see all the key > bindings. No, what I mean is that ZSH has some kind of line editor prompt where you can execute all command line editor commands by typing them in (with completion), e.g., things like forward-char, kill-line, etc. That's useful for finding out which editor commands exist and could be bound to a key. Bye, Tassilo _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users