-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suggest more that 1 and categorise autosuggestions; much like vimperator and friends, and let user define priority #1465
Comments
Can you please add some mockups of what this might look like, and/or screenshots of similar apps for inspiration? |
On Thu, May 15, 2014 at 02:01:38AM -0700, ridiculousfish wrote:
i'm attaching the screenshots to this via email, hoping github will |
those are from pentadactyl addon for firefox. |
please let me know if you need more info. |
I guess I just don't get it. Where did the command line go in the above screenshots? How would the user invoke it? |
commandline is at the bottom of the screen. |
i think best would be try to pentadactyl with firefox: if you're on linux then there is a bunch of browsers that do this natively: |
Those look cool, but the UI of a browser is necessarily different from that of a command line app, and I'm still not quite getting how the UI would work in fish. For example, you suggest typing 'o' to invoke this mode, but normally 'o' just inserts the letter o. So how would you insert an 'o'? |
-- one way of doing it -- there is a menu of possible completions (mpc? [1]) that comes with Tab already i mentioned 'o' simply because i thought you would want to give vimperator a try. [1] haven't looked at the code, feel free to let me know what mpc is in the |
does it make sense? i can explain more. |
It's hard to talk about this in the abstract. I really would like to see this mocked up in a terminal window. |
please explain by what mean by "mocking up in terminal window". i mean, i don't know where to start. is there any prior ticket that was explained this way? i mean what software(s) do i need for it? is gift animation what you have in mind? we probably need to get more people involved in this. it is a matter of explanation and my broken english is simply not adequet for it. i will post a pointer to this ticket on fish-users to see if that helps. |
another example for this would OS X's spotlight.
|
My point is that the terminal window limits the sort of UIs we can make. We cannot arbitrarily position or style text, we can't use graphics, and we ought to work with small terminal sizes. So what vimperator, spotlight, etc. look like in an 80x24 text display? |
wounldn't ncurses do the positioning and styling of the text? the best example i have for that is the pop-up menu in vim. using youcompleteme (there others) one gets categorised results in a dynamically sized menu. size of the menu depends on the number of results of course. i will see if i can capture some console images for that. ncurses should hanlde/ the terminal size as well. and no graphics whatever. vimperator and spotlight use icons to represent different categories in GUI but we can simply work with colours. or simply dashes lines between categories. or perhaps you mean something else by graphics. on a different note, slmenu might be usefull to look into. i can't articulate how it relates to what we're talking about here now but i will say more if you find it interesting: http://inconsolation.wordpress.com/2013/03/16/bonus-slmenu-and-some-seriously-wicked-console-wizardry/ |
i don't know if it shows in this demo but if for example suggestions are for directory paths user gets [Dir] at the far right indicating the category of the suggestion. also for functions from std C library, the related header file, like [stdio], and so on. here is another one: |
...in an 80x24 text display, it could look like this: |
reading my own comments i realised that i didn't answer your question about inserting 'o' properly. the answer is no; user doesn't need to enter 'o'. fish starts in that "mode". something akin to this: user starts typing and a menu of suggestions would be presented to him. that menu, and on the fly changes to it, will of course reflect the already typed chars into the prompt. also search is fuzzy, like the example above. two point about that menu:
|
zsh already does this a la auto-fu.zsh |
categorising down in vim-shell: |
The proposal is not compatible with an app like fish which doesn't own the entire terminal window. |
with this, autosuggestion doesn't just offer one single/best suggestion but rather give a list of suggestions pulled from different sources, very much like the way vimperator/pentadactyl/dwb do it. Tab obviously would cycle through suggestions.
moreover make it configureable so the user can decide which category has a higher priority.
The text was updated successfully, but these errors were encountered: