From 2762b00c479ec7a34d5709e90fd1f2fa2ff07149 Mon Sep 17 00:00:00 2001 From: crocket <748856+crocket@users.noreply.github.com> Date: Sat, 15 Feb 2020 14:27:11 +0900 Subject: [PATCH] Add `g TAB` as a substitute on terminal for Tab. --- modes/help/evil-collection-help.el | 1 + modes/info/evil-collection-info.el | 1 + readme.org | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modes/help/evil-collection-help.el b/modes/help/evil-collection-help.el index b852af8..da6b5d5 100644 --- a/modes/help/evil-collection-help.el +++ b/modes/help/evil-collection-help.el @@ -46,6 +46,7 @@ (kbd "") 'forward-button (kbd "") 'backward-button ;; This exists because is recognized as C-i on terminals. + (kbd "g TAB") 'forward-button "g]" 'forward-button "g[" 'backward-button diff --git a/modes/info/evil-collection-info.el b/modes/info/evil-collection-info.el index 5f230e3..6c2754c 100644 --- a/modes/info/evil-collection-info.el +++ b/modes/info/evil-collection-info.el @@ -45,6 +45,7 @@ (kbd "") 'Info-next-reference (kbd "S-") 'Info-prev-reference ;; This exists because is recognized as C-i on terminals. + (kbd "g TAB") 'Info-next-reference "g]" 'Info-next-reference "g[" 'Info-prev-reference diff --git a/readme.org b/readme.org index 3fabddd..9f03fe8 100644 --- a/readme.org +++ b/readme.org @@ -190,9 +190,11 @@ more. - Tab key - Tab key is recognized as ~~ in GUI and ~TAB~ in terminal. ~TAB~ equals ~C-i~. - - Since ~C-i~ is bound to jumping forward for vim compatibility, - bind ~g[~ and ~g]~ to the functions that Shift+Tab and Tab - are bound to on GUI for terminal compatibility. + - ~C-i~ is bound to jumping forward for vim compatibility. + If Shift+Tab is not relevant, just bind ~g TAB~ to the function + that Tab is bound to. If Shift+Tab is relevant, bind ~g]~ and + ~g TAB~ to the function that Tab is bound to, and bind ~g[~ to + the function that Shift+Tab is bound to for terminal compatibility. - Enter key - Enter key is recognized as ~~ in GUI and ~RET~ in terminal. ~RET~ equals ~Ctrl+m~.