This looks interesting. I was wondering if perhaps you should consider
collaborating with the Final Term[1] project instead, but then they use
Vala and GTK/Clutter and you use Qt/QML, so perhaps having two projects is
warranted.
Anyway I'm not sure fish_title is quite what you want, and neither would
fish_prompt be. They can be redrawn in situations where no command line
has been executed, such as when a key binding changes the working
directory. I totally think we need some hooks[2] for these things in fish;
I've been wanting "postexec" myself for doing things like showing a desktop
notification when a long-running command finishes. There's already an
event architecture in fish, so perhaps a few events could be added. In
your case it might work to rebind Enter, something like:
bind \n 'preexec; commandline -f execute'
I don't know of a way to hook the completions output. I think it calls out
to fish_pager to display them, but I'm not sure if it does that in every
situation. If I just replace it with a function fish_pager, that doesn't
seem to have any effect at all. Maybe try replacing the binary. Again,
maybe some hooks could be added. One of the things I like about fish is
that it tends to be quite hackable, but things can always be made more so.
[1] http://finalterm.org/
[2] https://github.com/fish-shell/fish-shell/issues/477
https://github.com/fish-shell/fish-shell/issues/672
On Sun, Jun 16, 2013 at 12:38 AM, Mario Signorino <
mario.signor...@gnufish.net> wrote:
> On Sat, Jun 15, 2013 at 9:55 PM, Mario Signorino
> <mario.signor...@gnufish.net> wrote:
>
> > 2) preexec: again, in zsh there is a preexec() function called just
> > after the execution of any command... and before any output. What I
> Ok.... I saw the OSC sent by default to set the window title. I could
> work on that.... fish_title.
>
> Now: the completion... I need to convert this:
>
> dodiesis@xps14 ~> ls / [TAB]
> /bin/ (Directory)
>
> to this
>
> dodiesis@xps14 ~> ls / [TAB]
> \033|.1 /bin/ \033|.2 \033|.3 (Directory) \033|.4
>
> tnx!
> Mario
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users