DVTM-EDITOR(1)
π DVTM-EDITOR β the little filter-glam bestie from the dvtm manual, section 1 β¨
okay so real talk, this is the dvtm-editor page from the General Commands Manual, and she's tiny but she's doing the most. let's get into it π
πΈ NAME πΈ
dvtm-editor β make a text editor act as a filter
like, your editor but she's a pipeline girlie now π
β¨ SYNOPSIS β¨
dvtm-editor ARGS...
that's it. that's the whole vibe. args go in, magic comes out π¦
π DESCRIPTION π
so dvtm-editor is a file buffering utility that the dvtm(1) terminal multiplexer uses to make its copy mode work. she reads standard input, saves it to a temporary file, and then opens an editor β and which editor she opens is decided by the "ENVIRONMENT VARIABLES" section below. iykyk π
now here's the important part, bestie, listen up:
- if the editor you invoked exits with a non-zero exit status,
dvtm-editoroutputs nothing at all. silence. ghosted. π» - if the file's modification time stays unchanged, same deal β nothing gets output.
- but if neither of those things happened? she dumps the content of the modified temporary file straight to stdout. slay. π₯
and every single command line argument gets forwarded verbatim, no edits, no notes. dvtm(1) uses this to adjust the initial view port by passing +n, which means "the start of line n should be displayed." periodt. π
π ENVIRONMENT VARIABLES π
she goes hunting for your user editor by checking these variables, in order:
DVTM_EDITORβ lets you invoke an editor that's specific to dvtm, or set particular flags. the VIP pass ποΈVISUAL,EDITORβ the fallback to global defaults. the reliable besties π«Ά
and if literally no editor is found? vi(1) gets used. she's always there for you. iconic behaviour fr fr.
π FILES π
the temporary files get created according to this template:
/tmp/dvtm-editor.XXXXXX
and /dev/tty gets opened to obtain a controlling tty, which is then used for the standard input/output streams of the invoked editor. so the editor has somewhere to actually be, you know? main character energy π§
π NOTES π
using vis(1) as your editor is particularly convenient because :wq! in visual mode will reduce the file down to the currently active selection(s). that's the trick, bestie. that's the whole hack. π₯
π SEE ALSO π
vi(1), dvtm(1), dvtm-pager(1) β go read the family, they're all lovely πΈ
π¦ AUTHOR π¦
dvtm is written by Marc AndrΓ© Tanner <mat at brain-dump.org> β thank you for your service, king π
okay and one last thing before you go: this isdvtmversion0.15+40.g311a8c0-1build1, datedDecember 27, 2016. so like, vintage but still eating. no cap. πβ¨π
π¦ where this page comes from
- ubuntu jammy: dvtm 0.15+40.g311a8c0-1build1 Β· MIT/X
- ubuntu noble: dvtm 0.15+40.g311a8c0-1build1 Β· MIT/X
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms