mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Add ipfs/ipns URL scheme support
This commit is contained in:
parent
6c00df818c
commit
c17d8db169
3 changed files with 9 additions and 3 deletions
|
@ -5,7 +5,13 @@ The sections should follow the order `Packaging`, `Added`, `Changed`, `Fixed` an
|
|||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## 0.8.0-dev
|
||||
## 0.9.0-dev
|
||||
|
||||
### Added
|
||||
|
||||
- Support for `ipfs`/`ipns` URLs
|
||||
|
||||
## 0.8.0
|
||||
|
||||
### Packaging
|
||||
|
||||
|
|
|
@ -478,7 +478,7 @@
|
|||
# - MoveViModeCursor
|
||||
# Move the vi mode cursor to the beginning of the hint.
|
||||
#enabled:
|
||||
# - regex: "(magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
|
||||
# - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
|
||||
# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
|
||||
# command: xdg-open
|
||||
# post_processing: true
|
||||
|
|
|
@ -24,7 +24,7 @@ use crate::config::window::WindowConfig;
|
|||
|
||||
/// Regex used for the default URL hint.
|
||||
#[rustfmt::skip]
|
||||
const URL_REGEX: &str = "(magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
|
||||
const URL_REGEX: &str = "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
|
||||
[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>\"\\s{-}\\^⟨⟩`]+";
|
||||
|
||||
#[derive(ConfigDeserialize, Debug, PartialEq)]
|
||||
|
|
Loading…
Reference in a new issue