Skip to content

Commit

Permalink
directvt#86 WIP: Switch to scripting model
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Dec 23, 2024
1 parent 7364cc8 commit 9ff0b01
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions src/vtm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,27 +152,27 @@ R"==(
<IncreaseWindowHeight ="vtm.window.warp( 0, 0, 0, 1)"/> <!-- Increase window height. -->
<DecreaseWindowHeight ="vtm.window.warp( 0, 0, 0,-1)"/> <!-- Decrease window height. -->

<TileFocusPrev ="vtm.tile.focus.next(-1)"/> <!-- Focus the previous pane or the split grip. -->
<TileFocusNext ="vtm.tile.focus.next( 1)"/> <!-- Focus the next pane or the split grip. -->
<TileFocusPrevPane ="vtm.tile.focus.nextpane(-1)"/> <!-- Focus the previous pane. -->
<TileFocusNextPane ="vtm.tile.focus.nextpane( 1)"/> <!-- Focus the next pane. -->
<TileRunApplication ="vtm.tile.run()"/> <!-- Launch application instances in active empty slots. The app to run can be set by RightClick on the taskbar. -->
<TileSelectAllPanes ="vtm.tile.selectall()"/> <!-- Select all panes. -->
<TileSplitHorizontally ="vtm.tile.split(0)"/> <!-- Split active panes horizontally. -->
<TileSplitVertically ="vtm.tile.split(1)"/> <!-- Split active panes vertically. -->
<TileSplitOrientation ="vtm.tile.rotate()"/> <!-- Change split orientation. -->
<TileSwapPanes ="vtm.tile.swap()"/> <!-- Swap two or more panes. -->
<TileEqualizeSplitRatio="vtm.tile.equalize()"/> <!-- Equalize split ratio. -->
<TileSetManagerTitle ="vtm.tile.title()"/> <!-- Set tiling window manager title using clipboard data. -->
<TileClosePane ="vtm.tile.closepane()"/> <!-- Close active application. -->
<TileMoveGripLeft ="vtm.tile.grip.move(-1, 0)"/> <!-- Move the split grip to the left. -->
<TileMoveGripRight ="vtm.tile.grip.move( 1, 0)"/> <!-- Move the split grip to the right. -->
<TileMoveGripUp ="vtm.tile.grip.move( 0,-1)"/> <!-- Move the split grip up. -->
<TileMoveGripDown ="vtm.tile.grip.move( 0, 1)"/> <!-- Move the split grip down. -->
<TileDecreaseGripWidth ="vtm.tile.grip.resize(-1)"/> <!-- Decrease the split grip width. -->
<TileIncreaseGripWidth ="vtm.tile.grip.resize( 1)"/> <!-- Increase the split grip width. -->
<TileFocusPrevGrip ="vtm.tile.grip.focusnext(-1)"/> <!-- Focus the previous split grip. -->
<TileFocusNextGrip ="vtm.tile.grip.focusnext( 1)"/> <!-- Focus the next split grip. -->
<TileFocusPrev ="vtm.window.tile.focus.next(-1)"/> <!-- Focus the previous pane or the split grip. -->
<TileFocusNext ="vtm.window.tile.focus.next( 1)"/> <!-- Focus the next pane or the split grip. -->
<TileFocusPrevPane ="vtm.window.tile.focus.nextpane(-1)"/> <!-- Focus the previous pane. -->
<TileFocusNextPane ="vtm.window.tile.focus.nextpane( 1)"/> <!-- Focus the next pane. -->
<TileRunApplication ="vtm.window.tile.run()"/> <!-- Launch application instances in active empty slots. The app to run can be set by RightClick on the taskbar. -->
<TileSelectAllPanes ="vtm.window.tile.selectall()"/> <!-- Select all panes. -->
<TileSplitHorizontally ="vtm.window.tile.split(0)"/> <!-- Split active panes horizontally. -->
<TileSplitVertically ="vtm.window.tile.split(1)"/> <!-- Split active panes vertically. -->
<TileSplitOrientation ="vtm.window.tile.rotate()"/> <!-- Change split orientation. -->
<TileSwapPanes ="vtm.window.tile.swap()"/> <!-- Swap two or more panes. -->
<TileEqualizeSplitRatio="vtm.window.tile.equalize()"/> <!-- Equalize split ratio. -->
<TileSetManagerTitle ="vtm.window.tile.title()"/> <!-- Set tiling window manager title using clipboard data. -->
<TileClosePane ="vtm.window.tile.closepane()"/> <!-- Close active application. -->
<TileMoveGripLeft ="vtm.window.tile.grip.move(-1, 0)"/> <!-- Move the split grip to the left. -->
<TileMoveGripRight ="vtm.window.tile.grip.move( 1, 0)"/> <!-- Move the split grip to the right. -->
<TileMoveGripUp ="vtm.window.tile.grip.move( 0,-1)"/> <!-- Move the split grip up. -->
<TileMoveGripDown ="vtm.window.tile.grip.move( 0, 1)"/> <!-- Move the split grip down. -->
<TileDecreaseGripWidth ="vtm.window.tile.grip.resize(-1)"/> <!-- Decrease the split grip width. -->
<TileIncreaseGripWidth ="vtm.window.tile.grip.resize( 1)"/> <!-- Increase the split grip width. -->
<TileFocusPrevGrip ="vtm.window.tile.grip.focusnext(-1)"/> <!-- Focus the previous split grip. -->
<TileFocusNextGrip ="vtm.window.tile.grip.focusnext( 1)"/> <!-- Focus the next split grip. -->

<IncreaseCellHeight ="vtm.gui.cell.grow( 1)"/> <!-- Increase the text cell height by one pixel. -->
<DecreaseCellHeight ="vtm.gui.cell.grow(-1)"/> <!-- Decrease the text cell height by one pixel. -->
Expand All @@ -185,49 +185,49 @@ R"==(

<ToggleDebugOverlay ="vtm.tui.debugoverlay()"/> <!-- Toggle debug overlay. -->

<ExclusiveKeyboardMode ="vtm.terminal.exclusivekeybd()"/> <!-- Toggle exclusive keyboard mode by pressing and releasing Ctrl-Alt or Alt-Ctrl (reversed release order). -->
<TerminalFindNext ="vtm.terminal.findnext( 1)"/> <!-- Highlight next match of selected text fragment. Clipboard content is used if no active selection. -->
<TerminalFindPrev ="vtm.terminal.findnext(-1)"/> <!-- Highlight previous match of selected text fragment. Clipboard content is used if no active selection. -->
<TerminalScrollViewportOnePageUp ="vtm.terminal.viewport.scrollbypage(0, 1)"/> <!-- Scroll viewport one page up. -->
<TerminalScrollViewportOnePageDown ="vtm.terminal.viewport.scrollbypage( 0,-1)"/> <!-- Scroll viewport one page down. -->
<TerminalScrollViewportOnePageLeft ="vtm.terminal.viewport.scrollbypage( 1, 0)"/> <!-- Scroll viewport one page to the left. -->
<TerminalScrollViewportOnePageRight="vtm.terminal.viewport.scrollbypage(-1, 0)"/> <!-- Scroll viewport one page to the right. -->
<TerminalScrollViewportOneLineUp ="vtm.terminal.viewport.scrollbycell( 0, 1)"/> <!-- Scroll viewport one line up. -->
<TerminalScrollViewportOneLineDown ="vtm.terminal.viewport.scrollbycell( 0,-1)"/> <!-- Scroll viewport one line down. -->
<TerminalScrollViewportOneCellLeft ="vtm.terminal.viewport.scrollbycell( 1, 0)"/> <!-- Scroll viewport one cell to the left. -->
<TerminalScrollViewportOneCellRight="vtm.terminal.viewport.scrollbycell(-1, 0)"/> <!-- Scroll viewport one cell to the right. -->
<TerminalScrollViewportToTop ="vtm.dropifrepeat(); vtm.terminal.viewport.scrolltotop()"/> <!-- Scroll viewport to the scrollback top. -->
<TerminalScrollViewportToEnd ="vtm.dropifrepeat(); vtm.terminal.viewport.scrolltoend()"/> <!-- Scroll viewport to the scrollback top. -->
<TerminalSendKey ="vtm.terminal.sendkey('test\r')"/> <!-- Simulating keypresses using the specified string. -->
<TerminalOutput ="vtm.terminal.print('Hello!')"/> <!-- Direct output the string to the terminal scrollback. -->
<TerminalViewportCopy ="vtm.terminal.viewport.copy()"/> <!-- Сopy viewport to clipboard. -->
<TerminalClipboardCopy ="vtm.terminal.selection.copy()"/> <!-- Сopy selection to clipboard. -->
<TerminalClipboardPaste ="vtm.terminal.paste()"/> <!-- Paste from clipboard. -->
<TerminalClipboardWipe ="vtm.terminal.clipboard.clear()"/> <!-- Reset clipboard. -->
<TerminalClipboardFormat ="vtm.terminal.clipboard.format()"/> <!-- Toggle terminal text selection copy format. -->
<TerminalSelectionRect ="vtm.terminal.selection.form()"/> <!-- Toggle between linear and rectangular selection form. -->
<TerminalSelectionCancel ="vtm.terminal.selection.clear()"/> <!-- Deselect a selection. -->
<TerminalSelectionOneShot ="vtm.terminal.selection.oneshot()"/> <!-- One-shot toggle to copy text while mouse tracking is active. Keep selection if 'Ctrl' key is pressed. -->
<TerminalUndo ="vtm.terminal.cookedread.undo()"/> <!-- (Win32 Cooked/ENABLE_LINE_INPUT mode only) Discard the last input. -->
<TerminalRedo ="vtm.terminal.cookedread.redo()"/> <!-- (Win32 Cooked/ENABLE_LINE_INPUT mode only) Discard the last Undo command. -->
<TerminalCwdSync ="vtm.terminal.cwdsync()"/> <!-- Toggle the current working directory sync mode. -->
<TerminalWrapMode ="vtm.terminal.line.wrapping()"/> <!-- Toggle terminal scrollback lines wrapping mode. Applied to the active selection if it is. -->
<TerminalAlignMode ="vtm.terminal.line.aligning()"/> <!-- Toggle terminal scrollback lines aligning mode. Applied to the active selection if it is. -->
<ExclusiveKeyboardMode ="vtm.window.terminal.exclusivekeybd()"/> <!-- Toggle exclusive keyboard mode by pressing and releasing Ctrl-Alt or Alt-Ctrl (reversed release order). -->
<TerminalFindNext ="vtm.window.terminal.findnext( 1)"/> <!-- Highlight next match of selected text fragment. Clipboard content is used if no active selection. -->
<TerminalFindPrev ="vtm.window.terminal.findnext(-1)"/> <!-- Highlight previous match of selected text fragment. Clipboard content is used if no active selection. -->
<TerminalScrollViewportOnePageUp ="vtm.window.terminal.viewport.scrollbypage(0, 1)"/> <!-- Scroll viewport one page up. -->
<TerminalScrollViewportOnePageDown ="vtm.window.terminal.viewport.scrollbypage( 0,-1)"/> <!-- Scroll viewport one page down. -->
<TerminalScrollViewportOnePageLeft ="vtm.window.terminal.viewport.scrollbypage( 1, 0)"/> <!-- Scroll viewport one page to the left. -->
<TerminalScrollViewportOnePageRight="vtm.window.terminal.viewport.scrollbypage(-1, 0)"/> <!-- Scroll viewport one page to the right. -->
<TerminalScrollViewportOneLineUp ="vtm.window.terminal.viewport.scrollbycell( 0, 1)"/> <!-- Scroll viewport one line up. -->
<TerminalScrollViewportOneLineDown ="vtm.window.terminal.viewport.scrollbycell( 0,-1)"/> <!-- Scroll viewport one line down. -->
<TerminalScrollViewportOneCellLeft ="vtm.window.terminal.viewport.scrollbycell( 1, 0)"/> <!-- Scroll viewport one cell to the left. -->
<TerminalScrollViewportOneCellRight="vtm.window.terminal.viewport.scrollbycell(-1, 0)"/> <!-- Scroll viewport one cell to the right. -->
<TerminalScrollViewportToTop ="vtm.dropifrepeat(); vtm.window.terminal.viewport.scrolltotop()"/> <!-- Scroll viewport to the scrollback top. -->
<TerminalScrollViewportToEnd ="vtm.dropifrepeat(); vtm.window.terminal.viewport.scrolltoend()"/> <!-- Scroll viewport to the scrollback top. -->
<TerminalSendKey ="vtm.window.terminal.sendkey('test\r')"/> <!-- Simulating keypresses using the specified string. -->
<TerminalOutput ="vtm.window.terminal.print('Hello!')"/> <!-- Direct output the string to the terminal scrollback. -->
<TerminalViewportCopy ="vtm.window.terminal.viewport.copy()"/> <!-- Сopy viewport to clipboard. -->
<TerminalClipboardCopy ="vtm.window.terminal.selection.copy()"/> <!-- Сopy selection to clipboard. -->
<TerminalClipboardPaste ="vtm.window.terminal.paste()"/> <!-- Paste from clipboard. -->
<TerminalClipboardWipe ="vtm.window.terminal.clipboard.clear()"/> <!-- Reset clipboard. -->
<TerminalClipboardFormat ="vtm.window.terminal.clipboard.format()"/> <!-- Toggle terminal text selection copy format. -->
<TerminalSelectionRect ="vtm.window.terminal.selection.form()"/> <!-- Toggle between linear and rectangular selection form. -->
<TerminalSelectionCancel ="vtm.window.terminal.selection.clear()"/> <!-- Deselect a selection. -->
<TerminalSelectionOneShot ="vtm.window.terminal.selection.oneshot()"/> <!-- One-shot toggle to copy text while mouse tracking is active. Keep selection if 'Ctrl' key is pressed. -->
<TerminalUndo ="vtm.window.terminal.cookedread.undo()"/> <!-- (Win32 Cooked/ENABLE_LINE_INPUT mode only) Discard the last input. -->
<TerminalRedo ="vtm.window.terminal.cookedread.redo()"/> <!-- (Win32 Cooked/ENABLE_LINE_INPUT mode only) Discard the last Undo command. -->
<TerminalCwdSync ="vtm.window.terminal.cwdsync()"/> <!-- Toggle the current working directory sync mode. -->
<TerminalWrapMode ="vtm.window.terminal.line.wrapping()"/> <!-- Toggle terminal scrollback lines wrapping mode. Applied to the active selection if it is. -->
<TerminalAlignMode ="vtm.window.terminal.line.aligning()"/> <!-- Toggle terminal scrollback lines aligning mode. Applied to the active selection if it is. -->
<TerminalFullscreen ="vtm.window.fullscreen()"/> <!-- Toggle fullscreen mode. -->
<TerminalMaximize ="vtm.window.maximize()"/> <!-- Toggle between maximized and normal window size. -->
<TerminalMinimize ="vtm.window.minimize()"/> <!-- Minimize window. -->
<TerminalStdioLog ="vtm.terminal.logging()"/> <!-- Toggle stdin/stdout logging. -->
<TerminalRestart ="vtm.terminal.restart()"/> <!-- Terminate runnning console apps and restart current session. -->
<TerminalQuit ="vtm.terminal.quit()"/> <!-- Terminate runnning console apps and close terminal. -->
<TerminalStdioLog ="vtm.window.terminal.logging()"/> <!-- Toggle stdin/stdout logging. -->
<TerminalRestart ="vtm.window.terminal.restart()"/> <!-- Terminate runnning console apps and restart current session. -->
<TerminalQuit ="vtm.window.terminal.quit()"/> <!-- Terminate runnning console apps and close terminal. -->

<ScrollPageUp ="vtm.defapp.scrollbypage( 0, 1)"/> <!-- -->
<ScrollPageDown ="vtm.defapp.scrollbypage( 0,-1)"/> <!-- -->
<ScrollLineUp ="vtm.defapp.scrollbystep( 0, 3)"/> <!-- -->
<ScrollLineDown ="vtm.defapp.scrollbystep( 0,-3)"/> <!-- -->
<ScrollCharLeft ="vtm.defapp.scrollbystep( 3, 0)"/> <!-- -->
<ScrollCharRight ="vtm.defapp.scrollbystep(-3, 0)"/> <!-- -->
<ScrollTop ="vtm.defapp.scrolltotop()"/> <!-- -->
<ScrollEnd ="vtm.defapp.scrolltoend()"/> <!-- -->
<ScrollPageUp ="vtm.window.defapp.scrollbypage( 0, 1)"/> <!-- -->
<ScrollPageDown ="vtm.window.defapp.scrollbypage( 0,-1)"/> <!-- -->
<ScrollLineUp ="vtm.window.defapp.scrollbystep( 0, 3)"/> <!-- -->
<ScrollLineDown ="vtm.window.defapp.scrollbystep( 0,-3)"/> <!-- -->
<ScrollCharLeft ="vtm.window.defapp.scrollbystep( 3, 0)"/> <!-- -->
<ScrollCharRight ="vtm.window.defapp.scrollbystep(-3, 0)"/> <!-- -->
<ScrollTop ="vtm.window.defapp.scrolltotop()"/> <!-- -->
<ScrollEnd ="vtm.window.defapp.scrolltoend()"/> <!-- -->
)=="
R"==(
</set>
Expand Down

0 comments on commit 9ff0b01

Please sign in to comment.