Sample Header Ad - 728x90

How to open file paths in vim using [[hints.enabled]] Alacritty

1 vote
0 answers
229 views
I am using Alacritty terminal for quite some time and it has a great feature to follow hyperlinks when clicking Ctrl+Shift+U. I am using MAC so a default program is open. Iam trying to add one more section [[hints.enabled]] command = "vim" # On Linux/BSD # command = "open" # On macOS # command = { program = "cmd", args = [ "/c", "start", "" ] } # On Windows hyperlinks = false post_processing = true persist = false mouse.enabled = true binding = { key = "F", mods = "Control|Shift" } regex = '(\n|.)*/\.[^/]*[^~]' The goal would be pretty straightforward. If Alacritty finds on a current focused terminal paths like lines below, I would like to follow them with vim. ~/path/to/file.(whatever suffix) ../path/to/file.(whatever suffix) path/to/file.(whatever suffix) Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: .terraform.lock.hcl modified: main.tf ... etc ... Any ideas ? The problem is that even if I see in logs [DEBUG] [alacritty] Launched vim with args ["~/path/to/some/file.yaml"] nothing really happens. File is not getting opened in Alacritty with Vim. Thx
Asked by user2156115 (131 rep)
Aug 28, 2024, 02:40 PM
Last activity: Aug 28, 2024, 02:58 PM