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

One-shot toggle to copy text while mouse tracking is active #588

Closed
o-sdn-o opened this issue Apr 22, 2024 · 0 comments · Fixed by #589
Closed

One-shot toggle to copy text while mouse tracking is active #588

o-sdn-o opened this issue Apr 22, 2024 · 0 comments · Fixed by #589
Labels
enhancement New feature or request Terminal Built-in terminal emulator UX User Experience

Comments

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Apr 22, 2024

I think a one-shot toggle on the vtm terminal side would be useful for selecting and copying text while mouse tracking is active.

xlink #584 (comment)

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.

Configuration example (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>
      </label>
    </item>
    <item label=" RTF " data=none type=Option action=TerminalSelectionOneShot>
      <label="\e[48:2:128:0:0;38:2:255:255:0m RTF \e[m" data=rich>
        <notes>
          " One-shot toggle to copy as RTF  \n"
          " while mouse tracking is active. "
        </notes>
      </label>
    </item>
    <item label="OneShot" data=none type=Option action=TerminalSelectionOneShot>
      <label="\e[48:2:128:0:0;38:2:255:255:0m  RTF  \e[m" data=rich>
        <notes>
          " One-shot toggle to copy as RTF  \n"
          " while mouse tracking is active. "
        </notes>
      </label>
      <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>
      </label>
    </item>
  </term>
</config>
Terminal.Dev.2024-04-22.21-40-05.mp4
@o-sdn-o o-sdn-o added enhancement New feature or request Terminal Built-in terminal emulator UX User Experience labels Apr 22, 2024
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Apr 22, 2024
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Terminal Built-in terminal emulator UX User Experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant