diff --git a/readme.md b/readme.md index 2475aca..ca9a7d6 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,3 @@ # .dotfiles -Moving to *Colemak* - +Moving to _Colemak_ diff --git a/vscode/vscode.vimrc b/vscode/vscode.vimrc index 59ede03..b7e7690 100644 --- a/vscode/vscode.vimrc +++ b/vscode/vscode.vimrc @@ -9,15 +9,122 @@ noremap n j noremap e k noremap i l +" Switch between tabs +noremap H :bprevious +noremap I :bnext + +noremap N 5j +noremap E 5k + " Similar position to i noremap l i noremap L I " ne[k]st noremap k n noremap K N -" [j]ump +" [j]ump noremap j e noremap J E " Y to yank to end of line -noremap Y y$ \ No newline at end of file +noremap Y y$ + +" 分词版本的w和b,支持中文,需要插件 +" Comment if you don't use cjk or the plugin +noremap w cjkWordHandler.cursorWordEndRight +noremap b cjkWordHandler.cursorWordStartLeft + +" keep selection after indent (define in settings.json) +" voremap < >gv + +" lsp +noremap gi editor.action.goToImplementation +noremap gpi editor.action.peekImplementation +noremap gd editor.action.goToDefinition +noremap gpd editor.action.peekDefinition +noremap gt editor.action.goToTypeDefinition +noremap gpt editor.action.peekTypeDefinition +noremap gh editor.action.showDefinitionPreviewHover + +noremap workbench.action.quickOpen +noremap : workbench.action.showCommands +" q : +quit +noremap qq :quit +noremap qQ :qall +noremap Q :quit +" w : +write/window +noremap ww :write +noremap wa :wall +noremap wq :wq +noremap W :write +noremap wh workbench.action.focusLeftGroup +noremap wH workbench.action.splitEditorLeft +noremap wn workbench.action.focusBelowGroup +noremap wN workbench.action.splitEditorDown +noremap we workbench.action.focusAboveGroup +noremap wE workbench.action.splitEditorUp +noremap wi workbench.action.focusRightGroup +noremap wI workbench.action.splitEditorRight +" f : +find/file +noremap ff workbench.action.quickOpen +noremap fF workbench.view.search +noremap fc workbench.action.openSettings +noremap fC workbench.action.openFolderSettingsFile +noremap fe workbench.view.explorer +noremap fr workbench.action.showAllEditorsByMostRecentlyUsed +noremap fR workbench.action.openRecent +noremap fs workbench.action.search.toggleQueryDetails +noremap ft workbench.action.terminal.toggleTerminal +noremap fx workbench.view.extensions +" p : +project (requires Project Manager extension) +noremap pp projectManager.listProjects +noremap pP projectManager.listAnyProjects#sideBarAny +noremap pc projectManager.openSettings#sideBarAny +noremap pe projectManager.editProjects +noremap pf projectManager.addToFavorites +noremap pF projectManager.filterProjectsByTag +noremap pg projectManager.listGitProjects#sideBarGit +noremap pr workbench.action.openRecent +noremap ps projectManager.saveProject +" g : +git +noremap gg workbench.view.scm +noremap gS git.stageAll +" j : +jump +noremap jj workbench.action.gotoLine +" l : +language (define in settings.json) +" u : +ui +noremap ui workbench.action.selectTheme +noremap uw editor.action.toggleWordWrap +noremap uz workbench.action.toggleZenMode +" a : +ai/action +noremap aa inlineChat.start +noremap aA workbench.panel.chat +noremap ae workbench.action.chat.openEditSession +" r : +refactor +" s : +search +" t : +test +noremap tt testing.runAll +noremap tT testing.debugAll +noremap ta testing.runAll +noremap tA testing.debugAll +noremap tf testing.reRunFailedTests +noremap tF testing.debugFailedTests +noremap tl testing.reRunLastRun +noremap tL testing.debugLastRun +noremap tc testing.runCurrentTest +noremap tC testing.debugCurrentTest +noremap tx testing.cancelTestRun +" d : +debug +" h : +help +" c : +code +noremap cr coderunner.run +noremap cf editor.action.formatDocument +noremap c editor.action.trimTrailingWhitespace +noremap cs workbench.action.gotoSymbol +noremap cS workbench.action.showAllSymbols +" b : +buffer +noremap bb workbench.action.showAllEditors +noremap bd :bdelete +noremap bh :bprevious +noremap bi :bnext diff --git a/win/ahk/main.ahk b/win/ahk/main.ahk index 705eec7..519a77d 100644 --- a/win/ahk/main.ahk +++ b/win/ahk/main.ahk @@ -1,32 +1,33 @@ -; TODO: Update to AHK v2 -#[:: -Run, C:\Users\citoy\AppData\Local\Programs\Microsoft VS Code\Code.exe -return -#]:: -Run, C:\Program Files\Neovide\neovide.exe -return -#b:: -Run, C:\Program Files\Zotero\zotero.exe -return -#f:: -Run, C:\Program Files\GPSoftware\Directory Opus\dopus.exe -return -#q:: -Send !{F4} -return -#r:: -Run, C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.21.3231.0_x64__8wekyb3d8bbwe\wt.exe -return +#Requires AutoHotkey v2.0 + +; #b:: +; Run '"C:\Program Files\Zotero\zotero.exe"' +; return + +; #f:: +; Run '"C:\Program Files\GPSoftware\Directory Opus\dopus.exe"' +; return + +; #q:: +; Send '!{F4}' +; return + +; #r:: +; Run '"C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.21.3231.0_x64__8wekyb3d8bbwe\wt.exe"' +; return #h:: -Send {Left} +Send '{Left}' return + #n:: -Send {Down} +Send '{Down}' return + #e:: -Send {Up} +Send '{Up}' return + #i:: -Send {Right} +Send '{Right}' return