<dnkl>
p00f: no, that's not possible. Foot would have to effectively start up another terminal instance, but re-use the current window. Lots of complexity...
<p00f>
i see
<p00f>
so
<p00f>
what if
<p00f>
it inserted "nvim $filename\r" into the prompt
<dnkl>
p00f: should be scriptable... the script's parent process is foot. I guess you could try writing to its stdin
<dnkl>
sorry... not stdin. The tty
uncomfy has quit [Remote host closed the connection]
<p00f>
ah cool
<p00f>
nice
<p00f>
thanks
andyrtr_ has joined #foot
andyrtr has quit [Ping timeout: 245 seconds]
uncomfy has joined #foot
andyrtr_ is now known as andyrtr
uncomfy has quit [Remote host closed the connection]
uncomfy has joined #foot
uncomfy has quit [Remote host closed the connection]
uncomfy has joined #foot
xenrox has quit [Remote host closed the connection]
<WhyNotHugo>
p00f: xdg-open can spawn neovim in a terminal for you.
<WhyNotHugo>
You don't need that wrapper script
<p00f>
manio: yes
<p00f>
WhyNotHugo: i want it to launch it in the current foot instance
<WhyNotHugo>
That's kinda tricky. The current foot instance might be running neovim, or less or fzf, etc. So even just injecting keystrokes for 'nvim filename' won't work.
<WhyNotHugo>
BTW: there was an IOCTL feature to inject keystrokes into the current terminal, but it was deemed a security liability and dropped.
<p00f>
hyperer-rg will add links to ripgrep output
<WhyNotHugo>
You can use wtype maybe?
<p00f>
hmmm
<p00f>
oh yeah
<p00f>
sure
<p00f>
nice
<p00f>
wtype works, just one more thing
<p00f>
\r just inserts literal \r
<p00f>
instead of pressing enter
<p00f>
wtype -P Return && wtype -p Return does what i want
<p00f>
thanks WhyNotHugo!
uncomfy has quit [Remote host closed the connection]
jmcantrell has joined #foot
jmcantrell has quit [Quit: WeeChat 4.0.4]
jmcantrell has joined #foot
jmcantrell has quit [Quit: WeeChat 4.0.4]
jmcantrell has joined #foot
jmcantrell has quit [Quit: WeeChat 4.0.4]
jmcantrell has joined #foot
qyliss has quit [Quit: bye]
qyliss has joined #foot
qyliss has quit [Remote host closed the connection]
qyliss has joined #foot
<p00f>
dnkl: https://github.com/groves/hyperer embeds file://hostname/path#line_number links, and it looks like foot strips the line number part in addition to the hostname
<dnkl>
p00f: osc-8 or auto-detected?
<dnkl>
guessing osc-8
<dnkl>
I doubt foot is the one stripping the #, but I'll see if I can test that tomorrow
<p00f>
osc-8, yes
bgs has quit [Remote host closed the connection]
alexander has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
<brocellous>
p00f: works for me
alexander has joined #foot
<brocellous>
print - '\e]8;;file://home/ronan/file.txt#23\e\\example\e]8;;\e\' prints "example" linked to "file://home/ronan/file.txt#23"