GithubHelp home page GithubHelp logo

Comments (11)

petertriho avatar petertriho commented on July 28, 2024 3

@gazorby Awesome! That fixed it for me

from fish-abbreviation-tips.

gazorby avatar gazorby commented on July 28, 2024

Sorry for the delay!
I'm not able to reproduce, do you still have this issue? Also, does it occurs only with gws and glg abbreviations?

from fish-abbreviation-tips.

alexanderjeurissen avatar alexanderjeurissen commented on July 28, 2024

Hi @gazorby thanks for following up.

I still have the issue presently. It not only happens with the git abbreviations but with any abbreviation.

I added a zipped screen recording to showcase the issue.

From the looks of it if you wait for a second or two after expanding the abbreviation the hint is not shown.
If you are fast and you hit enter after expanding the abbreviation it will incorrectly suggest you should have used an abbreviation.

abbreviations.mp4.zip

from fish-abbreviation-tips.

gazorby avatar gazorby commented on July 28, 2024

Hi @alexanderjeurissen

Thanks for the detail, your problem looks pretty weird. Do you have any other fish plugins installed? If so, i suggest you uninstall them and keep only fish-abbreviation-tips to see if there would be any potential overlap.

from fish-abbreviation-tips.

gazorby avatar gazorby commented on July 28, 2024

fish-abbreviation-tips has bindings to space and newline to detect if an abbreviation was used, if you have another fish plugin overriding some of these bindings, it could be the cause of the bug.

from fish-abbreviation-tips.

novadev94 avatar novadev94 commented on July 28, 2024

I'm having the same problem, it happens with all of my abbreviations, not just git ones. Checked the key bindings also, space & enter are properly bound to __abbr_tips_bind_space and __abbr_tips_bind_newline

from fish-abbreviation-tips.

petertriho avatar petertriho commented on July 28, 2024

This has been happening to me recently as well. Not sure if it's a coincidence but it seemed to have coincided with when I upgraded to fisher 4

from fish-abbreviation-tips.

gazorby avatar gazorby commented on July 28, 2024

Any news on this? I'm still unable to reproduce this issue.

I even tried in a clean ubuntu:latest docker container and didn't notice any wrong suggestion.

Can you try cleaning your fisher environment and only reinstalling abbreviation-tips?

Before reinstalling, ensure the following variables are removed:

__abbr_tips_used
__abbr_tips_run_once
__ABBR_TIPS_VALUES
__ABBR_TIPS_KEYS
ABBR_TIPS_PROMPT
ABBR_TIPS_AUTO_UPDATE
ABBR_TIPS_ALIAS_WHITELIST
ABBR_TIPS_REGEXES

Also make sure these functions doesn't exist anymore:

__abbr_tips_init
__abbr_tips_bind_newline
__abbr_tips_bind_space
__abbr_tips

If all of the above is gone then you should be in a clean environment.

from fish-abbreviation-tips.

petertriho avatar petertriho commented on July 28, 2024

I've checked that all the variables/functions were removed. Been a while since I've used this plugin but it appears that it only happens with abbr (aliases seem to work fine) e.g. for abbr g -> git

  1. type g<Space>status<CR>
  2. abbr tip shows

I have a bunch of plugins installed so when I have the chance, I'll test it with just abbr tips

from fish-abbreviation-tips.

mserajnik avatar mserajnik commented on July 28, 2024

I can confirm this is happening for me as well.

I have a single abbreviation defined in config.fish:

# Abbreviations
if status --is-interactive
  # Git
  abbr --add --global gs "git status"
end

I'm using the status --is-interactive conditional as it's described in the docs: https://fishshell.com/docs/current/cmds/abbr.html#internals
Though this might not be ideal because I had to run __abbr_tips_init manually for the abbreviation tip to show.
Edit: I've just tested adding a new abbreviation interactively via abbr --add gf "git fetch" instead and that also didn't show up without me running __abbr_tips_init manually, not even closing all instances of fish and restarting.
So I'm not sure what the "best practice" would be here (I just started giving fish a try after using zsh for years, so I'm not really familiar with it yet).

It doesn't matter if I run git status or gs, the abbreviation tip will be shown in both cases.

Using fish version 3.2.1 on Arch Linux.
Other plugins installed are:

from fish-abbreviation-tips.

gazorby avatar gazorby commented on July 28, 2024

@alexanderjeurissen, @novadev94 @petertriho, @mserajnik a fix has been merged to enable bindings when using vi mode, can you update the plugin and check if it's fixed?

from fish-abbreviation-tips.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.