Friday, November 22, 2024

terminal – Tips on how to open file paths in vim utilizing [[hints.enabled]] Alacritty

I’m utilizing Alacritty terminal for fairly a while and it has an excellent function to observe hyperlinks when clicking Ctrl+Shift+U. I’m utilizing MAC so a default program is open.

Iam attempting so as to add yet one more part

[[hints.enabled]]
command = "vim" # On Linux/BSD
# command = "open" # On macOS
# command = { program = "cmd", args = [ "/c", "start", "" ] } # On Home windows
hyperlinks = false
post_processing = true
persist = false
mouse.enabled = true
binding = Shift" 
regex = '(n|.)*/.[^/]*[^~]'

The purpose can be fairly easy. If Alacritty finds on a present targeted terminal
paths like traces beneath, I want to observe them with vim.

~/path/to/file.(no matter suffix)
../path/to/file.(no matter suffix)
path/to/file.(no matter suffix)

Adjustments not staged for commit:
  (use "git add <file>..." to replace what might be dedicated)
  (use "git restore <file>..." to discard adjustments in working listing)
        modified:   .terraform.lock.hcl
        modified:   important.tf
...
and so forth
...

Any concepts ?

The issue is that even when I see in logs
[DEBUG] [alacritty] Launched vim with args ["~/path/to/some/file.yaml"]
nothing actually occurs. File is just not getting opened in Alacritty with Vim.

Thx

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles