浏览代码

update vtextedit for VSCode-style shortcuts

Le Tan 6 月之前
父节点
当前提交
82b0ec751d
共有 3 个文件被更改,包括 25 次插入1 次删除
  1. 1 1
      libs/vtextedit
  2. 12 0
      src/data/extra/docs/en/shortcuts.md
  3. 12 0
      src/data/extra/docs/zh_CN/shortcuts.md

+ 1 - 1
libs/vtextedit

@@ -1 +1 @@
-Subproject commit 4ac454b1cefc45bcb697be25bd655d9927e8bbfd
+Subproject commit aaf3b097ac3ae0eed7324efae6ddce23a0130402

+ 12 - 0
src/data/extra/docs/en/shortcuts.md

@@ -59,6 +59,18 @@ Expand the selection to the beginning or end of current paragraph.
 Expand the selection to the beginning or end of current line.
 - `Ctrl+Shift+Home`, `Ctrl+Shift+End`  
 Expand the selection to the beginning or end of current note.
+- `Ctrl+Shift+G`  
+Go to line.
+- `Ctrl+C/X`
+Copy/Cut line if there is no selection.
+- `Ctrl+L`  
+Select line.
+- `Alt+Up/Down`  
+Move line up/down.
+- `Shift+Alt+Up/Down`
+Copy line up/down.
+- `Ctrl+Shift+K`  
+Delete line.
 
 ## Markdown Editor
 ### Read Mode

+ 12 - 0
src/data/extra/docs/zh_CN/shortcuts.md

@@ -59,6 +59,18 @@ VNote的很多部件均支持`Ctrl+J`和`Ctrl+K`导航。
 扩展选定到行首和行尾。
 - `Ctrl+Shift+Home`, `Ctrl+Shift+End`  
 扩展选定到笔记开始或结尾处。
+- `Ctrl+Shift+G`  
+跳转到指定行。
+- `Ctrl+C/X`  
+在没有选中文本时复制/剪切整行。
+- `Ctrl+L`  
+选择当前行。
+- `Alt+Up/Down`  
+向上/向下移动行。
+- `Shift+Alt+Up/Down`  
+向上/向下复制行。
+- `Ctrl+Shift+K`  
+删除行。
 
 ## Markdown 编辑器
 ### 阅读模式