Open URLs with cmd-click (#7312)

Release Notes:

- Added ability to cmd-click on URLs in all buffers

---------

Co-authored-by: fdionisi <code@fdionisi.me>
This commit is contained in:
Conrad Irwin 2024-02-02 22:05:28 -07:00 committed by GitHub
parent 583273b6ee
commit 1a82470897
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 551 additions and 601 deletions

View file

@ -170,4 +170,34 @@ impl Modifiers {
pub fn modified(&self) -> bool {
self.control || self.alt || self.shift || self.command || self.function
}
/// helper method for Modifiers with no modifiers
pub fn none() -> Modifiers {
Default::default()
}
/// helper method for Modifiers with just command
pub fn command() -> Modifiers {
Modifiers {
command: true,
..Default::default()
}
}
/// helper method for Modifiers with just shift
pub fn shift() -> Modifiers {
Modifiers {
shift: true,
..Default::default()
}
}
/// helper method for Modifiers with command + shift
pub fn command_shift() -> Modifiers {
Modifiers {
shift: true,
command: true,
..Default::default()
}
}
}