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

Uncomment most recent comment if commandline is empty when using toggle comment binding #7137

Merged
merged 3 commits into from Jun 24, 2020

Conversation

sudormrfbin
Copy link
Contributor

@sudormrfbin sudormrfbin commented Jun 20, 2020

Description

The current behaviour of __fish_toggle_comment_commandline function (bound to Alt+#) is to do nothing if the command line is empty. This PR recalls the last comment and uncomments it instead if the command line is empty. This can be achieved by hitting '#' and 'Up', but it feels too clunky IMO and the first suggestion might not be what you want if an innocent # appeared in a previous command.

TODOs:

  • User-visible changes noted in CHANGELOG.rst

@faho faho added this to the fish 3.2.0 milestone Jun 20, 2020
@faho faho merged commit 2fd78fd into fish-shell:master Jun 24, 2020
@faho
Copy link
Member

faho commented Jun 24, 2020

Merged, thanks!

@sudormrfbin sudormrfbin deleted the toggle-comment-recall-prev branch June 25, 2020 03:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants