Johannes Altmanninger
Johannes Altmanninger
> Showing a menu without pressing TAB involves a lot of cursor movement all the time and is quite disruptive, also completions are performance-sensitive and we have no way of...
> glob * --except *.iso `string match -v \*.iso -- *` should do that. I have never thought of that trick when I needed it, though.
On Sat, Feb 05, 2022 at 02:38:35AM -0800, Fe3O4 wrote: > > Rebind the keys. > > > > We don't tend to add options for things like this. >...
Interesting idea. The current behavior is that `git restore foo/bar*`+Tab+Return has the same effect as `git restore foo/bar*`+Return (without the Tab). IOW, Tab merely performs file globbing, just like evaluation...
Right, if I have bash -> python -> bash -> command kill $(pgrep python) -s then the top-level bash doesn't crash. If I replace it with fish, it does crash....
In the interactive reader [only the best completions are shown](https://github.com/fish-shell/fish-shell/blob/2fff12104d7ea37323beb266a030ff89610d1ee2/src/reader.cpp#L1947-L1948). The rankings are described in https://github.com/fish-shell/fish-shell/issues/568#issuecomment-18455181. The match type (exact/prefix/substring/subsequence) [dominates the case differences](https://github.com/fish-shell/fish-shell/blob/master/src/wcstringutil.cpp#L212).
> Do you know why there exists a distinction between completions that replace the token and ones that don't? Right, the distinction only exists internally and does not show up...
> I expected both `bar` and `BAZ` to be suggested when typing `foo b`, but `bar` gets selected automatically without any option to choose `BAZ`. @MatisseHack what happens here is...
Completions for `vim` are implemented in `share/completions/vim.fish`. You can use any language (shouldn't need C++), fish script is the most obvious one.
According to the [ctags docs](https://docs.ctags.io/en/latest/man/tags.5.html) the tags file format is tag-nametag-metadata the completion format that fish expects is completiondescription So you can literally start with complete vim -s t -xa...