Skip to content

Commit

Permalink
add: ZZ and ZQ for default keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
sha5010 committed Mar 10, 2023
1 parent 7ee0bad commit c022da2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ vim.xlam は vim のような使用感で Excel 上でもキーボード主体
| Worksheet | `ww` | `showSheetPicker` | SheetPicker を起動 |
| Workbook | `:w` | `saveWorkbook` | アクティブブックを保存 |
| Workbook | `:q` | `closeAskSaving` | アクティブブックを閉じる(未保存時はダイアログを表示) |
| Workbook | `:q!` | `closeWithoutSaving` | アクティブブックを保存せずに閉じる |
| Workbook | `:wq` | `closeWithSaving` | アクティブブックを保存して閉じる |
| Workbook | `:q!`/`ZQ` | `closeWithoutSaving` | アクティブブックを保存せずに閉じる |
| Workbook | `:wq`/`x`/`ZZ` | `closeWithSaving` | アクティブブックを保存して閉じる |
| Other | `u` | `undo_CtrlZ` | 元に戻す (`Ctrl + Z` を送出) |
| Other | `<C-r>` | `redoExecute` | やり直し |

Expand Down Expand Up @@ -395,8 +395,8 @@ vim.xlam は vim のような使用感で Excel 上でもキーボード主体
| Workbook | `:e!` | `reopenActiveWorkbook` | アクティブなブックの変更を破棄し開き直す |
| Workbook | `:w` | `saveWorkbook` | アクティブブックを保存 |
| Workbook | `:q` | `closeAskSaving` | アクティブブックを閉じる(未保存時はダイアログを表示) |
| Workbook | `:q!` | `closeWithoutSaving` | アクティブブックを保存せずに閉じる |
| Workbook | `:wq`/`:x` | `closeWithSaving` | アクティブブックを保存して閉じる |
| Workbook | `:q!`/`ZQ` | `closeWithoutSaving` | アクティブブックを保存せずに閉じる |
| Workbook | `:wq`/`:x`/`ZZ` | `closeWithSaving` | アクティブブックを保存して閉じる |
| Workbook | `:b[num]` | `activateWorkbook` | `[num]` 番目のブックを選択 |
| Workbook | `@n`/`:bn` | `nextWorkbook` | 次のワークブックを選択 |
| Workbook | `@N`/`:bp` | `previousWorkbook` | 前のワークブックを選択 |
Expand Down
2 changes: 2 additions & 0 deletions src/UserConfig.bas
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ Sub initMapping()
Call map(":", "bn", "nextWorkbook", returnOnly:=True)
Call map(":", "bp", "previousWorkbook", returnOnly:=True)

Call map("Z", "Z", "closeWithSaving")
Call map("Z", "Q", "closeWithoutSaving")
Call map("@", "a", "toggleReadOnly")
Call map("@", "n", "nextWorkbook")
Call map("@", "N", "previousWorkbook")
Expand Down

0 comments on commit c022da2

Please sign in to comment.