Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak a couple commands in VS code #477

Merged
merged 7 commits into from
Jun 26, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions castervoice/apps/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class VSCodeCcrRule(MergeRule):
rdescript="VS Code: Select in between parable punctuation inclusive using 'brackets select' extension"
)*Repeat(extra='n'),
"all current selection":
R(Key("c-l"), rdescript="VS Code:Select All Occurrences of Current Selection"),
R(Key("c-l"), rdescript="VS Code: Select All Occurrences of Current Selection"),
"all current word":
R(Key("c-f2"), rdescript="VS Code: Select All Occurrences of Current Word"),
"select next [<n>]":
Expand Down Expand Up @@ -170,7 +170,7 @@ class VSCodeNonCcrRule(MergeRule):
# Display
# note that most of these can be turned on/off with the same command
"[toggle] full screen":
R(Key("sa-enter"), rdescript="VS Code: VS Code: Fullscreen"),
R(Key("sa-enter"), rdescript="VS Code: Fullscreen"),
"toggle orientation":
R(Key("sa-0"), rdescript="VS Code: Toggle Orientation"),
"zoom in [<n>]":
Expand All @@ -188,9 +188,9 @@ class VSCodeNonCcrRule(MergeRule):
"key mappings":
R(Key("c-k, c-s:2"), rdescript="VS Code: Key Mappings"),
"settings":
R(Key("a-f, p, s"), rdescript="VS Code: User/workspace Settings"),
R(Key("a-f, p, s, enter"), rdescript="VS Code: User/workspace Settings"),
"snippets":
R(Key("a-f, p, s:2"), rdescript="VS Code: User Snippets"),
R(Key("a-f, p, s:2, enter"), rdescript="VS Code: User Snippets"),
"extensions":
R(Key("cs-x"), rdescript="VS Code: Extensions"),
"search details":
Expand All @@ -208,8 +208,12 @@ class VSCodeNonCcrRule(MergeRule):
# File Management
"[open] command palette":
R(Key("cs-p"), rdescript="VS Code: Command Palette"),
"(open [file] | go to [tab]) [<text>]":
R(Key("c-p") + Text("%(text)s"), rdescript="VS Code: Go to File"),
"(open file | go to [tab]) [<text>]":
R(Key("c-p") + Text("%(text)s"), rdescript="VS Code: Go to File without using dialogbox"),
"open dialogue":
R(Key("c-o"), rdescript="VS Code: open file dialogbox")
"open folder":
R(Key("c-k, c-o"), rdescript="VS Code: Open folder"),
"Save and close":
R(Key("c-s/10, c-w"), rdescript="VS Code: Save And Close File"),
"new file":
Expand All @@ -233,7 +237,7 @@ class VSCodeNonCcrRule(MergeRule):
rdescript="VS Code: Previous Tab"),
"close tab [<n>]":
R(Key("c-f4/20") * Repeat(extra='n'),
rdescript="VS Code: Visual Studio: Close Tab"),
rdescript="VS Code: Close Tab"),
"(recent | R) tab [<n>]":
R(Key("c-tab") * Repeat(extra='n'),
rdescript="VS Code: Go to Most Recent Tab"),
Expand Down Expand Up @@ -269,11 +273,11 @@ class VSCodeNonCcrRule(MergeRule):
R(Key("a-enter"), rdescript="VS Code: Select all Occurrences of Find Match"),

"toggle case sensitive":
R(Key("a-c"), rdescript="VS Code: Toggle Case Sensitive"),
R(Key("a-c"), rdescript="VS Code: Toggle Find Case Sensitive"),
"toggle regex":
R(Key("a-r"), rdescript="VS Code: Toggle Regular Expressions"),
R(Key("a-r"), rdescript="VS Code: Toggle Find Regular Expressions"),
"toggle whole word":
R(Key("a-w"), rdescript="VS Code: Toggle Whole Word"),
R(Key("a-w"), rdescript="VS Code: Toggle Find Whole Word"),

"(find | jump [to]) next <text>":
R(Function(findNthToken, n=1, direction="forward"),
Expand All @@ -299,10 +303,10 @@ class VSCodeNonCcrRule(MergeRule):
R(Key("c-k, c-right"), rdescript="VS Code: Move to Next Pane"),
"shift group left":
R(Key("c-k, left"),
rdescript="Shift Current Group of Tabs to the Left E.g. Swap with Pane to the Left"),
"shift group left":
rdescript="VS Code: Shift Current Group of Tabs to the Left E.g. Swap with Pane to the Left"),
"shift group right":
R(Key("c-k, right"),
LexiconCode marked this conversation as resolved.
Show resolved Hide resolved
rdescript="Shift Current Group of Tabs to the Right E.g. Swap with Pane to the Right"
rdescript="VS Code: Shift Current Group of Tabs to the Right E.g. Swap with Pane to the Right"
),
"<nth> tab":
R(Key("c-%(nth)s"), rdescript="VS Code: Go to Nth Pane"),
Expand Down Expand Up @@ -347,7 +351,7 @@ class VSCodeNonCcrRule(MergeRule):
R(Key("s-f5"), rdescript="VS Code: Debug Stop"),
"continue":
R(Key("f5"), rdescript="VS Code: Start/Continue"),
"show hover":
"(show hover|mouse hover|hover mouse)":
R(Key("c-k, c-i"),
rdescript="Show the little box as if you are hovering your mouse over the place where the cursor (As opposed to the mouse pointer) currently is"
),
Expand Down