From da728dbe9b58a4fcf5f216b3084e793b88a6e511 Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:04:44 +0500 Subject: [PATCH 1/7] #86 WIP: Sync menu and hotkey actions --- doc/apps.md | 51 +++++++++++++++++++++----------- doc/settings.md | 44 +++++++++++++-------------- src/netxs/apps/term.hpp | 16 +++++----- src/netxs/desktopio/controls.hpp | 2 +- src/netxs/desktopio/gui.hpp | 1 + src/netxs/desktopio/richtext.hpp | 4 +-- src/netxs/desktopio/terminal.hpp | 20 ++++++------- src/vtm.xml | 26 ++++++++-------- 8 files changed, 90 insertions(+), 74 deletions(-) diff --git a/doc/apps.md b/doc/apps.md index 88fa1d02a1..2d5172a3ac 100644 --- a/doc/apps.md +++ b/doc/apps.md @@ -102,8 +102,8 @@ Repeat | Selects the next label and exec the function specified by the `actio Value | Arguments (`data=`) | Description -----------------------------|-------------------------------|------------ -Drop | | Drop all events for the specified key combination. No further processing. -DropAutoRepeat | | Drop `Key Repeat` events for the specified key combination. This binding should be specified before the main action for the key combination. +Noop | | Ignore all events for the specified key combination. No further processing. +DropAutoRepeat | | Ignore `Key Repeat` events for the specified key combination. This binding should be specified before the main action for the key combination. SwitchHotkeyScheme | _Scheme name_ | Switch the hotkey scheme to the specified one. TerminalCwdSync | | Current working directory sync toggle. The command to send for synchronization is configurable via the `` setting's option. Where `$P` is a variable containing current path received via OSC 9;9 notification.
To enable OSC9;9 shell notifications:
- Windows Command Prompt:
`setx PROMPT $e]9;9;$P$e\$P$G`
- PowerShell:
`function prompt{ $e=[char]27; "$e]9;9;$(Convert-Path $pwd)$e\PS $pwd$('>' * ($nestedPromptLevel + 1)) " }`
- Bash:
`export PS1='\[\033]9;9;\w\033\\\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '` TerminalWrapMode | `on` \| `off` | Set terminal scrollback lines wrapping mode. Applied to the active selection if it is. @@ -114,14 +114,14 @@ TerminalOutput | _Text string_ | Direct output the TerminalSendKey | _Text string_ | Simulating keypresses using the specified string. TerminalQuit | | Terminate runnning console apps and close terminal. TerminalRestart | | Terminate runnning console apps and restart current session. -TerminalToggleFullscreen | | Toggle fullscreen mode. -TerminalToggleMaximize | | Toggle between maximized and normal window size. +TerminalFullscreen | | Toggle fullscreen mode. +TerminalMaximize | | Toggle between maximized and normal window size. TerminalUndo | | (Win32 Cooked/ENABLE_LINE_INPUT mode only) Discard the last input. TerminalRedo | | (Win32 Cooked/ENABLE_LINE_INPUT mode only) Discard the last Undo command. +TerminalClipboardCopy | | Сopy selection to clipboard. TerminalClipboardPaste | | Paste from clipboard. TerminalClipboardWipe | | Reset clipboard. -TerminalSelectionMode | `none` \| `text` \| `ansi` \|
`rich` \| `html` \| `protected` | Set terminal text selection mode. -TerminalSelectionCopy | | Сopy selection to clipboard. +TerminalClipboardFormat | `none` \| `text` \| `ansi` \|
`rich` \| `html` \| `protected` | Set terminal text selection copy format. TerminalSelectionRect | `on` \| `off` | Set linear(off) or rectangular(on) selection form using boolean value. TerminalSelectionCancel | | Deselect a selection. TerminalSelectionOneShot | `none` \| `text` \| `ansi` \|
`rich` \| `html` \| `protected` | One-shot toggle to copy text while mouse tracking is active. Keep selection if `Ctrl` key is pressed.. @@ -130,7 +130,7 @@ TerminalScrollViewportByPage | _`IntX, IntY`_ | Scroll viewport b TerminalScrollViewportByCell | _`IntX, IntY`_ | Scroll viewport by _`IntX, IntY`_ cells. TerminalScrollViewportToTop | | Scroll viewport to the scrollback top. TerminalScrollViewportToEnd | | Scroll viewport to the scrollback bottom (reset viewport position). -TerminalStdioLog | | Stdin/stdout log toggle. +TerminalStdioLog | `on` \| `off` | Toggle stdin/stdout logging to the specified state, or just toggle to another state if no arguments are specified. *TerminalLogStart | | Start logging to file. *TerminalLogPause | | Pause logging. *TerminalLogStop | | Stop logging. @@ -210,7 +210,15 @@ Hotkey | Description " - applied to selection if it is " - + + + + + " Align text lines left/right/center \n" + " - applied to selection if it is " + + +