Hello, > Precisely, how to execute "execute" after "forward-char" with > bind \cf myfunction?
this seems to work with the following function > function myfunction > commandline -f execute forward-char > end or simpler > bind \cf "commandline -f execute forward-char" Interestingly, the order of the arguments is reversed to what I would have expected, i.e. to first call "forward-char" and then "execute", "execute" has to be given before "forward-char". This is an obvious opportunity to improve Fish's usability by reversing the order and documenting the behavior of multiple binds in practice. What is left is correct formatting. When writing "echo abc" in the command line, "echo" is colored green and "abc" is colored blue (with my current color set). When writing "ec" and pressing the bound key combination to call the above function, the command is correctly completed and executed, but the whole string "echo abc" is colored red. The documentation says > If such a script produces output, the script needs to finish by calling > 'commandline -f repaint' in order to tell fish that a repaint is in order. Unfortunately, even the following function does not execute a correct repaint > function myfunction > commandline -f repaint > commandline -f repaint execute repaint forward-char repaint > commandline -f repaint > end Do I miss something, is this a bug or this what I want to do currently impossible since the formatter runs in another thread? Patrick ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users