From 7d2c07d6478c1340d52c3dfb16f10178b0cbf9dc Mon Sep 17 00:00:00 2001 From: Ian Markind Date: Wed, 22 Aug 2018 23:10:54 -0400 Subject: [PATCH] added php storm text selection commands --- google-chrome.py | 5 ++++- jetbrains.py | 7 +++++++ std.py | 10 ++++++++-- vs-code.py | 18 ++++++++++-------- 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/google-chrome.py b/google-chrome.py index e808743..61ff50f 100644 --- a/google-chrome.py +++ b/google-chrome.py @@ -106,7 +106,10 @@ def jump_tab(m): '(carbon copy | see see)': Key('cmd-shift-c'), '(blind carbon copy | bee see see)': Key('cmd-shift-b'), 'misspelled word': Key('cmd-;'), - 'suggestions': Key('cmd-m'), + + # Not working + 'word choice': Key('cmd-m'), + 'remove format': Key('cmd-\\'), 'bold': Key('cmd-b'), 'italics': Key('cmd-i'), diff --git a/jetbrains.py b/jetbrains.py index 2f95f31..af76c4c 100644 --- a/jetbrains.py +++ b/jetbrains.py @@ -22,6 +22,7 @@ keymap = { 'comment declaration': ['/**', Key('space')], 'comment block': ['/**', Key('enter')], + 'block comment': Key('cmd-alt-/'), '(dupe | duplicate)': Key('cmd-d'), 'import class': Key('alt-enter enter'), @@ -40,7 +41,13 @@ 'settings': Key('cmd-,'), 'grab': Key('alt-up'), 'shrink': Key('alt-down'), + 'grab left': Key('cmd-shift-left'), + 'grab right': Key('cmd-shift-right'), 'close': Key('cmd-w'), + 'top': Key('cmd-home'), + 'bottom': Key('cmd-end'), + 'grab up': Key('shift-cmd-pageup'), + 'grab down': Key('shift-cmd-pagedown'), # 'rename': Key('shift-f6'), 'move file': Key('f6'), 'global search': Key('shift shift'), diff --git a/std.py b/std.py index fa25b6c..86d0239 100644 --- a/std.py +++ b/std.py @@ -220,13 +220,19 @@ def FormatText(m): '(comment | uncomment)': Key('cmd-/'), 'start': Key('cmd-left'), 'end': Key('cmd-right'), - '(top | go to top)': Key('cmd-up'), 'page up': Key('pageup'), 'page down': Key('pagedown'), 'jump [right] word': Key('alt-right'), 'jump left word': Key('alt-left'), - + # Selecting text + 'select line': Key('cmd-right cmd-shift-left'), + 'select start': Key('cmd-shift-left'), + 'select end': Key('cmd-shift-right'), + 'select word': Key('alt-shift-right'), + 'select left word': Key('alt-shift-left'), + 'select right': Key('shift-right'), + 'select left': Key('shift-left'), 'slap': [Key('cmd-right enter')], 'enter': Key('enter'), diff --git a/vs-code.py b/vs-code.py index cb7b8fd..19b46cb 100644 --- a/vs-code.py +++ b/vs-code.py @@ -42,15 +42,17 @@ def jump_to_next_word_instance(m): '[toggle] terminal': Key('alt-f12'), - # Selecting text - 'select line': Key('cmd-right cmd-shift-left'), - 'select start': Key('cmd-shift-left'), - 'select end': Key('cmd-shift-right'), - 'select word': Key('alt-shift-right'), - 'select left word': Key('alt-shift-left'), - 'select right': Key('shift-right'), - 'select left': Key('shift-left'), + # # Selecting text + # 'select line': Key('cmd-right cmd-shift-left'), + # 'select start': Key('cmd-shift-left'), + # 'select end': Key('cmd-shift-right'), + # 'select word': Key('alt-shift-right'), + # 'select left word': Key('alt-shift-left'), + # 'select right': Key('shift-right'), + # 'select left': Key('shift-left'), 'select instances': Key('cmd-shift-l'), + + '(top | go to top)': Key('cmd-up'), # Finding text '(previous | last)': Key('cmd-shift-g'),