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

Improve key bindings context documentation #1959

Open
FichteFoll opened this issue Aug 31, 2024 · 0 comments
Open

Improve key bindings context documentation #1959

FichteFoll opened this issue Aug 31, 2024 · 0 comments

Comments

@FichteFoll
Copy link

Problem description

The documentation regarding available context keys and their relevant values on https://www.sublimemerge.com/docs/key_bindings#context is a bit lacking. Particularly, I was looking for a way to bind a key to the commit tree to copy the commit hash when it has focus.

From the collapse_merge and expand_merge binding, one is able to infer that there is a "commit_table" operand for the "control" key, but the docs are pretty clear here in that only "text_control" is supported.

Preferred solution

Please list all the available operands for the control context key.

Additional Information

The functional key binding is as follows:

  { "keys": ["ctrl+c"],
    "command": "copy_to_clipboard",
    "args": { "text": "$commit" },
    "context": [
        { "key": "control", "operand": "commit_table" },
        { "key": "search_mode", "operator": "not_equal" }
    ]
  },
@FichteFoll FichteFoll changed the title Improve key bindings documentation Improve key bindings context documentation Aug 31, 2024
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

No branches or pull requests

1 participant