Skip to content

v0.9.81

Compare
Choose a tag to compare
@o-sdn-o o-sdn-o released this 22 Apr 17:06
· 103 commits to master since this release
1ddffac

GitHub all current

Changes

  • Implement one-shot toggle to copy text while mouse tracking is active. #588

New configurable menu button:

Action Description
TerminalSelectionOneShot One-shot toggle to copy text while mouse tracking is active. Keep selection if Ctrl key is pressed.
The data= attribute can have the following values none, text, ansi, rich, html, protected.

Closes #588

Configuration example (~/.config/vtm/settings.xml)

<config>
  <term>
    <item label=" HTML " data=none type=Option action=TerminalSelectionOneShot>
      <label="\e[48:2:0:128:128;38:2:0:255:255m HTML \e[m" data=html/>
      <notes>
        " One-shot toggle to copy as HTML \n"
        " while mouse tracking is active. "
      </notes>
    </item>
    <item label=" Text " data=none type=Option action=TerminalSelectionOneShot>
      <label="\e[48:2:0:128:0;38:2:0:255:0m Text \e[m" data=text/>
      <notes>
        " One-shot toggle to copy as Text \n"
        " while mouse tracking is active. "
      </notes>
    </item>
    <item label="One-Shot" data=none type=Option action=TerminalSelectionOneShot>
      <label="\e[48:2:0:128:0;38:2:0:255:0m  Text  \e[m" data=text/>
      <label="\e[48:2:0:128:128;38:2:0:255:255m  HTML  \e[m" data=html/>
      <notes>
        " One-shot toggle to copy as Text/HTML \n"
        " while mouse tracking is active.      "
      </notes>
    </item>
  </term>
</config>
Terminal.Dev.2024-04-22.21-40-05.mp4