fish-abbreviation-tips icon indicating copy to clipboard operation
fish-abbreviation-tips copied to clipboard

Doesn't work at all for me

Open BarbzYHOOL opened this issue 1 year ago • 7 comments

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)

BarbzYHOOL avatar Oct 15 '23 21:10 BarbzYHOOL

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).

linduxed avatar Dec 13 '23 10:12 linduxed

I'm a sad sad panda :'( @gazorby

BarbzYHOOL avatar Dec 19 '23 22:12 BarbzYHOOL

Same for me It's necessary to do anything to work with Oh My Fish?

tutods avatar Jan 17 '24 20:01 tutods

Hi!

I don't have much time to work on this plugin atm, but I will get back to it as soon as possible ;)

gazorby avatar Jan 26 '24 11:01 gazorby

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

My fish config

Related #17

rwietter avatar Jan 26 '24 14:01 rwietter

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.

krestaino avatar Mar 09 '24 07:03 krestaino

it doesn't work with oh-my-posh prompt. whether you use the abbr or not it always prints the tip.

AtifChy avatar Jul 16 '24 18:07 AtifChy