-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Allow to specify button to use in hints.mouse #8486
Comments
Note that hints.mouse is currently about underlining the hint when hovering over the hint text, and not about specifying a mouse binding that triggers the action/command. Just to be clear, what #4063 was asking initially (and what I'm interested in) is the ability to right click on a URL in order to copy it to the clipboard, without opening it. |
mouse is of form |
What is default for |
The default mouse binding is to expand selection. |
I am thinking of modifying Something like: pub fn generate_hint_bindings(&mut self) {
for hint in &self.hints.enabled {
let binding = match &hint.binding {
Some(binding) => binding,
None => continue,
};
if let Some(hint_mouse) = hint.mouse {
if hint_mouse.enabled {
let mouse_binding = MouseBinding {
trigger: hint_mouse.button.0,
mods: hint_mouse.mods.0,
mode: binding.mode.mode,
notmode: binding.mode.not_mode,
action: Action::Hint(hint.clone()),
};
self.mouse.bindings.0.push(mouse_binding);
}
}
// Keyboard binding after...
}
} Am I going in the right direction? |
Do you want to purge the default that way? I think we should just purge the default or something and it's general with keyboard. |
Any hint on how you want the conflict to resolve if the |
Default should be purged, like it's right now. If you have them in two places, both should act. Maybe @chrisduerr has a better idea how to deal with it, since we have the same issue with keyboard hints. |
There's a reason why I don't want to implement this. |
I apologize for asking this question. I am new to the codebase. What function that enables me to disable hint selection if the hint is triggered by a mouse button? I noticed left click always Also, I think we can remove from default only the same key registered by |
The logic on how things are removed should be the same as for the regular keyboard/mouse bindings.
Not sure what you mean by that. |
Should be relatively simple, just additional
button =
field with default toLeft
, so it's not a breaking change.The text was updated successfully, but these errors were encountered: