Skip to content

Commit

Permalink
added php storm text selection commands
Browse files Browse the repository at this point in the history
  • Loading branch information
TestPlan committed Aug 23, 2018
1 parent 89dcb3f commit 7d2c07d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
5 changes: 4 additions & 1 deletion google-chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
7 changes: 7 additions & 0 deletions jetbrains.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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'),
Expand Down
10 changes: 8 additions & 2 deletions std.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
18 changes: 10 additions & 8 deletions vs-code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 7d2c07d

Please sign in to comment.