dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.15.3 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
xd1le has quit [Quit: xd1le]
jmcantrell has quit [Quit: WeeChat 4.0.4]
jmcantrell has joined #foot
jmcantrell has quit [Client Quit]
jmcantrell has joined #foot
boomboxnation has quit [Quit: WeeChat 4.0.2]
boomboxnation has joined #foot
vyryls has joined #foot
bcheng_ has joined #foot
bcheng has quit [*.net *.split]
bcheng_ is now known as bcheng
jmcantrell has quit [Quit: WeeChat 4.0.4]
jmcantrell has joined #foot
jmcantrell has quit [Client Quit]
jmcantrell has joined #foot
jmcantrell has quit [Quit: WeeChat 4.0.4]
jmcantrell has joined #foot
bgs has joined #foot
jmcantrell has quit [Quit: WeeChat 4.0.4]
vyryls has quit [Read error: Connection reset by peer]
Biolunar has quit [Ping timeout: 240 seconds]
Biolunar has joined #foot
uncomfy has joined #foot
xd1le has joined #foot
bgs has quit [Remote host closed the connection]
p00f has joined #foot
<p00f> dnkl: when i use a custom script for url-open, can i make it launch the command in the current foot instance
<p00f> the matrix bridge died as i suspected
<p00f> :(
<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]
xenrox has joined #foot
<p00f> dnkl: doesn't work
<p00f> [I] ganymede ~> string join "" "/dev/" (ps -o tty= --pid $fish_pid)
<p00f> /dev/pts/0
<p00f> [I] ganymede ~> echo foo\r > /dev/pts/0
<p00f> foo
<p00f> [I] ganymede ~>
<p00f> it just prints it, doesn't insert into the prompt
Biolunar has quit [Ping timeout: 246 seconds]
<p00f> I might be severely misunderstanding what "writing to a process's tty" means
<p00f> and foot doesn't have a tty?
<p00f> ps -o tty= --pid (pidof foot) gives "?"
uncomfy has quit [Remote host closed the connection]
uncomfy has joined #foot
<manio> p00f: ganymede is your hostname?
<manio> i remember theme called like this: https://ps.ucw.cz/e16/e16-themes-gallery/Ganymede.png
<manio> :)
bgs has joined #foot
<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.
<p00f> it won't
<p00f> the use case is https://github.com/groves/hyperer:
<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"
nightquest has left #foot [#foot]