mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-04 10:24:34 +03:00
Add support for magnet URLs
This commit is contained in:
1 parent
edf0faf98f
commit
78e04445c7
2 files changed
+2
-1
No files matched your search
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Synchronized terminal updates using `DCS = 1 s ST`/`DCS = 2 s ST`
|
||||
- Regex terminal hints ([see features.md](./docs/features.md#hints))
|
||||
- macOS keybinding (cmd+alt+H) hiding all windows other than Alacritty
|
||||
- Support for `magnet` URLs
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::config::window::WindowConfig;
|
||||
|
||||
/// Regex used for the default URL hint.
|
||||
#[rustfmt::skip]
|
||||
const URL_REGEX: &str = "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
|
||||
const URL_REGEX: &str = "(magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
|
||||
[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>\" {-}\\^⟨⟩`]+";
|
||||
|
||||
#[derive(ConfigDeserialize, Debug, PartialEq)]
|
||||
|
||||
Reference in new issue
Block a user