Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest fish master might make commandline sequencing easier #6

Open
krobelus opened this issue Apr 19, 2024 · 3 comments
Open

Latest fish master might make commandline sequencing easier #6

krobelus opened this issue Apr 19, 2024 · 3 comments

Comments

@krobelus
Copy link

krobelus commented Apr 19, 2024

Latest fish master includes
c3cd68dda (Process shell commands from bindings like regular char events, 2024-03-02)
a583fe723 ("commandline -f foo" to skip queue and execute immediately, 2024-04-08)
which should make the execution order more natural.
This should address the note in the readme

The second commit means that commandline synchronizes properly. I wonder if that breaks/improves anything; tests seem to pass still.
The selection update after history search seems to be broken, I'll try to investigate. nevermind that also happens on 3.7.1

Overall this project is impressive. One thing that seems missing is an insert-mode way to accept autosuggestions.
(I'm not sure if I'd use it, I'm used to kakoune bindings)

@krobelus krobelus changed the title Latest fish master might have commandline sequencing easier Latest fish master might make commandline sequencing easier Apr 19, 2024
@krobelus
Copy link
Author

there are also a bunch of improvements to Vi mode (see CHANGELOG.rst) that might benefit fish-helix.
Maybe you want to do set fish_cursor_end_mode inclusive to make sure that the cursor never selects the one-paste-last character. For Vi mode this improves autosuggestion behavior (for commands like $. incidentally I'm not sure how to go to the beginning/end of line with fish_helix_key_bindings. x is missing I think)

I think we'll still need some changes to fish to make it easier to write such bindings. But such changes should be easy and not contentious

@sshilovsky
Copy link
Owner

@krobelus Thanks for the info and for the feedback!

x is missing, it's also number one on my wishlist, but I seem to never get to it :( Alt+E calls external editor, and it seems enough for rare cases.

You can accept autosuggestions in insert mode with Right Arrow key: many default fish bindings are still in place

@krobelus
Copy link
Author

Completely untested but I think for the one-line case, x should be easy to implement with something like commandline -f beginning-of-line begin-selection end-of-line... not sure

Yeah right arrow should work for me, just would need to change habits (except on keyboards where it's not so easy to reach)

I also use alt-e a lot, it even synchronizes the cursor position now though only for Vim/Kakoune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants