From 1100562e29f6476448b656dbddd4cf22505523f6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 10 Mar 2024 14:59:14 +0100 Subject: Move back to JBMAFP --- ...023-06-25-alacritty-open-links-with-modifier.md | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 _posts/notes/2023-06-25-alacritty-open-links-with-modifier.md (limited to '_posts/notes/2023-06-25-alacritty-open-links-with-modifier.md') 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 @@ ---- -title: "Alacritty open links with modifier" -permalink: /alacritty-open-links-with-modifier.html -date: 2023-06-25T17:17:16+02:00 -layout: post -type: note -draft: false -tags: [linux] ---- - -Alacritty by default makes all links in the terminal output clickable and this -gets annoying rather quickly. I liked the default behavior of Gnome terminal -where you needed to hold Control key and then you could click and open links. - -To achieve this in Alacritty you need to provide a `hint` in the configuration -file. Config file is located at `~/.config/alacritty/alacritty.yml`. - -```yaml -hints: - enabled: - - regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ - [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" - command: xdg-open - post_processing: true - mouse: - enabled: true - mods: Control -``` - -The following should work under any Linux system. For macOS, you will need to -change `command: xdg-open` to something else. - -Now the links will be visible and clickable only when Control key is being -pressed. - -Source: https://github.com/alacritty/alacritty/issues/5246 -- cgit v1.2.3