diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
| commit | 1100562e29f6476448b656dbddd4cf22505523f6 (patch) | |
| tree | 442eec492199104bd49dfd74474ce89ade8fcac9 /_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md | |
| parent | a40d80be378e46a6c490e1b99b0d8f4acd968503 (diff) | |
| download | mitjafelicijan.com-1100562e29f6476448b656dbddd4cf22505523f6.tar.gz | |
Move back to JBMAFP
Diffstat (limited to '_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md')
| -rw-r--r-- | _posts/notes/2023-06-25-alacritty-open-links-with-modifier.md | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md b/_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md deleted file mode 100644 index a26dd14..0000000 --- a/_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | --- | ||
| 2 | title: "Alacritty open links with modifier" | ||
| 3 | permalink: /alacritty-open-links-with-modifier.html | ||
| 4 | date: 2023-06-25T17:17:16+02:00 | ||
| 5 | layout: post | ||
| 6 | type: note | ||
| 7 | draft: false | ||
| 8 | tags: [linux] | ||
| 9 | --- | ||
| 10 | |||
| 11 | Alacritty by default makes all links in the terminal output clickable and this | ||
| 12 | gets annoying rather quickly. I liked the default behavior of Gnome terminal | ||
| 13 | where you needed to hold Control key and then you could click and open links. | ||
| 14 | |||
| 15 | To achieve this in Alacritty you need to provide a `hint` in the configuration | ||
| 16 | file. Config file is located at `~/.config/alacritty/alacritty.yml`. | ||
| 17 | |||
| 18 | ```yaml | ||
| 19 | hints: | ||
| 20 | enabled: | ||
| 21 | - regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ | ||
| 22 | [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" | ||
| 23 | command: xdg-open | ||
| 24 | post_processing: true | ||
| 25 | mouse: | ||
| 26 | enabled: true | ||
| 27 | mods: Control | ||
| 28 | ``` | ||
| 29 | |||
| 30 | The following should work under any Linux system. For macOS, you will need to | ||
| 31 | change `command: xdg-open` to something else. | ||
| 32 | |||
| 33 | Now the links will be visible and clickable only when Control key is being | ||
| 34 | pressed. | ||
| 35 | |||
| 36 | Source: https://github.com/alacritty/alacritty/issues/5246 | ||
