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

Change parameter object keybind from p to a #1708

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

sudormrfbin
Copy link
Member

#1627 requires p for paragraph textobject which was being used by parameter. This PR replaces parameter's p with a which can be thought of as "argument", and replaces all instances of "parameter" with "argument" for consistent naming.

@archseer
Copy link
Member

Can you rebase? Fixed lints on master

book/src/keymap.md Outdated Show resolved Hide resolved
@anthonyjclark
Copy link

Should the docs still use "argument (parameter)" somewhere so that it is easy find in a search?

@archseer
Copy link
Member

Could we keep parameter and use P for paragraph?

@sudormrfbin
Copy link
Member Author

Paragraph movement is something I use fairly a lot, and I would say the same goes for most people. ]P takes three keypresses which I think is too many for a common operation.

@archseer
Copy link
Member

archseer commented Mar 3, 2022

How about keeping the same name for the functions and query scopes, but using a for the binding (and "argument (parameter)" in the infobox)?

The highlight scopes already use @variable.parameter for these so it's a bit confusing if the textobject scopes are different.

This is largely to avoid a collision with the soon
to be merged paragraph object which takes up the p key.
@sudormrfbin sudormrfbin changed the title Rename parameter textobject to argument Change parameter object keybind from p to a Mar 6, 2022
@archseer archseer merged commit b0aaf08 into helix-editor:master Mar 7, 2022
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

Successfully merging this pull request may close these issues.

3 participants