Open BarbzYHOOL opened 10 months ago
Same situation for me.
EDIT: I should say that the only time it seems to work for me is for "aliases" (i.e. functions) but for abbreviations is seems like it's not working (as stated by @BarbzYHOOL).
I'm a sad sad panda :'( @gazorby
Same for me It's necessary to do anything to work with Oh My Fish?
Hi!
I don't have much time to work on this plugin atm, but I will get back to it as soon as possible ;)
I was facing this issue as well. I noticed that __ABBR_TIPS_KEYS
and __ABBR_TIPS_VALUES
are not updated every time Fish is opened. Therefore, if you add an abbr -a name command
in the config.fish
, it won't be recognized immediately.
I managed to resolve this by adding the following function that executes the script __abbr_tips_init
every time Fish is opened. This will update __ABBR_TIPS_KEYS
and __ABBR_TIPS_VALUES
. It's not the most performant solution, but it works for now.
abbr --add gds 'git diff --stat'
function abbr_update_keys_and_values
__abbr_tips_init
end
abbr_update_keys_and_values
Related #17
I just moved over to Fish from ZSH and wasn't aware of abbreviations until I stumbled across this plugin. The aliases worked fine and showed the tips when I used the long command, but once I switched them all to abbreviations, this plugin was not showing the tips for the abbreviations when using the long command. Based on @rwietter's comment and #17, I've found one option is to simply reinstall this plugin after adding new abbreviations. Then the tips will show up again when running the long commands. Considering I rarely add new aliases, or now abbreviations, this option is sufficient for me in the meantime and probably better than running __abbr_tips_init
every new Fish instance.
it doesn't work with oh-my-posh
prompt. whether you use the abbr or not it always prints the tip.
I don't know how to make it work, I type an expanded form of an abbreviation I have already added or I just add a new abbr and type its expanded form and I see no tips
I read the readme and it said "just install and use as normal"
https://asciinema.org/a/I2mNHkzCJDwONf11EtxOivMd9 (first time i use asciinema sorry, the second command should have a tip, I prove it afterwards)