Skip to content

Commit 82b0ec7

Browse files
committed
update vtextedit for VSCode-style shortcuts
1 parent a7348c0 commit 82b0ec7

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

src/data/extra/docs/en/shortcuts.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ Expand the selection to the beginning or end of current paragraph.
5959
Expand the selection to the beginning or end of current line.
6060
- `Ctrl+Shift+Home`, `Ctrl+Shift+End`
6161
Expand the selection to the beginning or end of current note.
62+
- `Ctrl+Shift+G`
63+
Go to line.
64+
- `Ctrl+C/X`
65+
Copy/Cut line if there is no selection.
66+
- `Ctrl+L`
67+
Select line.
68+
- `Alt+Up/Down`
69+
Move line up/down.
70+
- `Shift+Alt+Up/Down`
71+
Copy line up/down.
72+
- `Ctrl+Shift+K`
73+
Delete line.
6274

6375
## Markdown Editor
6476
### Read Mode

src/data/extra/docs/zh_CN/shortcuts.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ VNote的很多部件均支持`Ctrl+J`和`Ctrl+K`导航。
5959
扩展选定到行首和行尾。
6060
- `Ctrl+Shift+Home`, `Ctrl+Shift+End`
6161
扩展选定到笔记开始或结尾处。
62+
- `Ctrl+Shift+G`
63+
跳转到指定行。
64+
- `Ctrl+C/X`
65+
在没有选中文本时复制/剪切整行。
66+
- `Ctrl+L`
67+
选择当前行。
68+
- `Alt+Up/Down`
69+
向上/向下移动行。
70+
- `Shift+Alt+Up/Down`
71+
向上/向下复制行。
72+
- `Ctrl+Shift+K`
73+
删除行。
6274

6375
## Markdown 编辑器
6476
### 阅读模式

0 commit comments

Comments
 (0)