Repository navigation
A cli prompt selector - #7958
Conversation
|
This is rad. Name: There's only one package in Debian that has a UI: I think a bare |
The idea here is that you can use Or, like I added in above, you can just add We could add a |
| return 1 | ||
| end | ||
|
|
||
| set -l prompt_dir $__fish_data_dir/sample_prompts $__fish_data_dir/tools/web_config/sample_prompts |
There was a problem hiding this comment.
(note: This was added in preparation of moving the sample_prompts directory out of web_config - because it no longer is web-exclusive)
Done |
|
Alright, moved it over to The web-ui can be accessed via |
|
Alright, selecting the initial tab is broken anyway (even without this). |
It's a bit weird to *have* to fire up a browser to get fish_config to choose a prompt. So this adds a `prompt` subcommand to `fish_config`: - `fish_config prompt list` shows all the available prompt names - `fish_config prompt show` demos the available sample prompts - `fish_config prompt choose` sources a prompt - `fish_config prompt save` makes the choice permanent A bare `fish_config` or `fish_config browse` opens the web UI. Part of fish-shell#3625. TODO: This shows the right prompt on a new line. Showing it in-line is awkward to do because we'd have to move it to the right.
|
Alright, merged. |


It's a bit weird to have to fire up a browser to get fish_config to
choose a prompt.
So this adds
prompt:prompt listshows all the available prompt namesprompt showdemos the available sample promptsprompt choosesources a promptprompt savemakes the choice permanentPart of #3625.
This means that you can e.g. pick the "informative" prompt by adding
prompt choose informativeto config.fish, and it will just alwayssourcethe one from the currently installed fish (so it will update when we update the sample). This is on purpose and has basically no overhead, so it's entirely acceptable - we might even want to recommend it in the docs.TODOs:
to do because we'd have to move it to the right (and this involves width-without-color, see string pad doesn't work with escapes #7784).
prompt, or maybe a more general "config tool"? A special mode forfish_config, so if you dofish_config promptit'll run in the terminal,fish_configwill keep opening the browser?