0.9 C
New York
Wednesday, December 25, 2024

vi – How one can open file paths in vim utilizing [[hints.enabled]] Alacritty


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

Iam attempting so as to add yet another 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 aim can be fairly easy. If Alacritty finds on a present centered terminal
paths like traces beneath, I want to comply with them with vim.

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

Modifications not staged for commit:
  (use "git add <file>..." to replace what will probably be dedicated)
  (use "git restore <file>..." to discard adjustments in working listing)
        modified:   .terraform.lock.hcl
        modified:   major.tf
...
and many others
...

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