Skip to content
New issue

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

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

Already on GitHub? # 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

@sudormrfbin sudormrfbin force-pushed the rename-parameter-object branch from dc2aaca to d6f59fe Compare February 25, 2022 15:11
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?

@sudormrfbin sudormrfbin force-pushed the rename-parameter-object branch from d6f59fe to 5f2de72 Compare February 25, 2022 17:24
@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 force-pushed the rename-parameter-object branch from 5f2de72 to ac51619 Compare March 6, 2022 05:49
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants