mattgreen / park.fish

MIT License
16 stars 1 forks source link

Unable to make the plugin works with recent version of fish #3

Open ccoVeille opened 2 years ago

ccoVeille commented 2 years ago

Hi

I'm using fish 3.4.1

I tested your extension by using

env HOME=$(mktemp -d) fish
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install mattgreen/park.fish

I tried to debug, here is what I can tell you

CTRL+Q works it calls park commandline --replace "" works and empty the line park defines unpark unpark is the defined __unpark is called on next command cmd and cursor contain the right values

So apparently, commandline --replace and commandline --cursor are not doing what is expected

I tested, and your plugin works perfectly with an older version of fish such as 3.12

docker container run -it --rm dideler/fish-shell:3.1.2
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install mattgreen/park.fish
IndianBoy42 commented 1 year ago

I think something has changed about fish_prompt, when I changed it to fish_postexec event it works again