Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't figure out Copymode #111

Closed
xxxserxxx opened this issue Jun 10, 2020 · 2 comments
Closed

Can't figure out Copymode #111

xxxserxxx opened this issue Jun 10, 2020 · 2 comments

Comments

@xxxserxxx
Copy link

Copymode seems to be working, but the buffer is always empty.

  • Arch dvtm-git: dvtm-v0.15-40-g311a8c0 © 2007-2016 Marc André Tanner
  • kitty 0.17.4 created by Kovid Goyal
  • abduco-0.6 © 2013-2016 Marc André Tanner
  • Kakoune v2020.01.16

I was happy to see dvtm-editor show up in the repository and solve the fact that kak doesn't have a fifo mode (AFAICT). Indeed, MOD-e does open an editor (vi, although EDITOR, VISUAL, and DVTM_EDITOR are all set to kak), but the buffer is empty. A look at ps shows a process:

ser      1292305  0.0  0.0   6072  2680 pts/1    S+   16:19   0:00 vi +0 /tmp/dvtm-editor.myypMa

and when I manually cat that file it is empty lines; wc -l says 17 of them.

Maybe I don't understand how this works. From the README and man page, I thought if I did an ls and then MOD-e I'd get an editor with some amount of the ls command opened in the editor, and this takes the place of tmux's visual selection mode. Do I need to do something else?

@xxxserxxx
Copy link
Author

xxxserxxx commented Jun 12, 2020

This occurs only when launched from the WM via a hotkey. There are a lot of moving parts, and I'm not yet sure which component is causing the issue, but the full chain is:

  1. Hotkey in i3 launches i3quake, passing the abduco command; effectively:
    bindsym $mod+Shift+n exec /home/ser/go/bin/i3quake -p right -H 0.6 -- $shell abduco -A i3quake dvtm -m ^b
    
  2. i3quake executes the arguments with Go's os/exec. The purpose of this tool is to spawn the tool and then mark the resulting window using i3 marks so it can be easily found and manipulated using i3's scratchpad, so the window can be hidden and exposed with a hotkey like any number of Quake-inspired terminals.
  3. $shell is defined as st, but the behavior (copymode not working) is the same regardless of the shell used; I've tried st, kitty, and termite. The variable is poorly named; it should be $terminal or $termemulator. Whatever.
  4. $shell runs abduco
  5. abduco runs dvtm
  6. copymode successfully executes launches with MOD-e, using my preferred $EDITOR (kakoune), but the buffer is empty. The behavior is the same regardless of the editor used; I've tried vi and vis.

However: if I just launch st and then run abduco -A xyz dvtm -m ^b, then copymode works as expected. Because it works by itself, I'm closing this ticket.

@vl-ms
Copy link

vl-ms commented Aug 25, 2022

I have the same issue. On OpenBSD with cwm, with either xterm or st, and a vis editor copymode buffer seems to remain empty. Or at least, I can't paste anything in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants