aboutsummaryrefslogtreecommitdiff
path: root/_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md
diff options
context:
space:
mode:
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.md36
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---
2title: "Alacritty open links with modifier"
3permalink: /alacritty-open-links-with-modifier.html
4date: 2023-06-25T17:17:16+02:00
5layout: post
6type: note
7draft: false
8tags: [linux]
9---
10
11Alacritty by default makes all links in the terminal output clickable and this
12gets annoying rather quickly. I liked the default behavior of Gnome terminal
13where you needed to hold Control key and then you could click and open links.
14
15To achieve this in Alacritty you need to provide a `hint` in the configuration
16file. Config file is located at `~/.config/alacritty/alacritty.yml`.
17
18```yaml
19hints:
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
30The following should work under any Linux system. For macOS, you will need to
31change `command: xdg-open` to something else.
32
33Now the links will be visible and clickable only when Control key is being
34pressed.
35
36Source: https://github.com/alacritty/alacritty/issues/5246