Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Use W as alias for w in command mode #8261

Closed
nuke-web3 opened this issue Sep 12, 2023 · 5 comments
Closed

Use W as alias for w in command mode #8261

nuke-web3 opened this issue Sep 12, 2023 · 5 comments
Labels
C-enhancement Category: Improvements

Comments

@nuke-web3
Copy link
Contributor

While waiting for a solution to create custom commands and/or command aliases #4423 (comment) I propose that W (unused) would be an alias for w in the command pallet.

FAR too often I type :W (shift held down) instead of :w. So much I am considering dropping using the editor as I need to first save to do other tasks/run commands that need the file saved.

@nuke-web3 nuke-web3 added the C-enhancement Category: Improvements label Sep 12, 2023
@nuke-web3
Copy link
Contributor Author

Same could be for Q and q too, as all too often I get the same issue for the same reason

@David-Else
Copy link
Contributor

David-Else commented Sep 13, 2023

Not keen on the idea myself, perhaps try:

[keys.normal.space]
w = ":write"

I played around with some options for a while and settled on the above as the best, very fast.

@nuke-web3
Copy link
Contributor Author

That is a good suggestion, thanks!

Why do you not want the mapping (at least optionally) for the command mode itself? Using it for something else?

@David-Else
Copy link
Contributor

Why do you not want the mapping (at least optionally) for the command mode itself? Using it for something else?

Every key is precious, and w W seems redundant... just practice touch typing a bit more :) I use https://github.com/lemnos/tt

In Helix the capital version of keys always have another related command.

@pascalkuthe
Copy link
Member

I agree I don't think an alias is necessary here.

@helix-editor helix-editor locked and limited conversation to collaborators Sep 14, 2023
@pascalkuthe pascalkuthe converted this issue into discussion #8286 Sep 14, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants