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

[fish] Leading characters: don't strip ., expand ~/ #4136

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

bitraid
Copy link
Contributor

@bitraid bitraid commented Dec 19, 2024

A couple of more changes to fish key bindings: A fix for a bug that removed the leading dot of the query, and an enhancement that enables the expansion of ~/ (more info in commit messages). There is also a small syntax modification to some commands (the position of -- that marks the end of switches), for consistency with the rest of the code (no actual change).

Fix the removal of the leading dot character from the query, when
<Ctrl-T> was pressed and the current command line token started with a
dot. It was also removed when <Alt-C> was pressed and the directory
didn't exist under the current path.
Enable expanding to user's home directory, when pressing <Ctrl-T> or
<Alt-C>, and the current command line token starts with `~/`.
No actual change, just for consistency with the rest of the code.
@junegunn junegunn merged commit 0167691 into junegunn:master Dec 19, 2024
5 checks passed
@junegunn
Copy link
Owner

Thanks!

@bitraid bitraid deleted the improve-fish-2 branch December 19, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants