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

Add and adjust keystroke commands in nav.py #480

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
22 changes: 20 additions & 2 deletions castervoice/lib/ccr/core/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,24 @@ class Navigation(MergeRule):
"spark [<nnavi500>] [(<capitalization> <spacing> | <capitalization> | <spacing>) (bow|bowel)]":
R(Function(navigation.drop_keep_clipboard, nexus=_NEXUS), rspec="spark", rdescript="Core: Paste"),

"splat [<splatdir>] [<nnavi10>]":
R(Key("c-%(splatdir)s"), rspec="splat", rdescript="Core: Splat") * Repeat(extra="nnavi10"),

"shin deli [<nnavi50>]":
R(Key("s-del/5"), rspec="shift deli", rdescript="Core:hard Delete") * Repeat(extra="nnavi50"),
"shin tabby [<nnavi50>]":
R(Key("s-tab/5"), rspec="shift tabby", rdescript="Core: shift tab") * Repeat(extra="nnavi50"),
'shin shock [<nnavi50>]':
R(Key("s-enter"), rspec="shift shock", rdescript="Core: Shift Enter")* Repeat(extra="nnavi50"),

"splat [<nnavi50>]":
R(Key("cs-left:%(nnavi50)s, del"), rspec="splat",
rdescript="Core: delete words to the left"),
"sprat [<nnavi50>]":
R(Key("cs-right:%(nnavi50)s, del"), rspec="sprat",
rdescript="Core: delete words to the right"),
"splat wally":
R(Key("s-home, del"), rspec="splat wally", rdescript="Core: delete left till end of line"),
"sprat wally":
R(Key("s-end, del"), rspec="sprat wally", rdescript="Core: delete right till end of line "),
"deli [<nnavi50>]":
R(Key("del/5"), rspec="deli", rdescript="Core: Delete") * Repeat(extra="nnavi50"),
"clear [<nnavi50>]":
Expand All @@ -250,6 +266,8 @@ class Navigation(MergeRule):
R(Function(navigation.duple_keep_clipboard), rspec="duple", rdescript="Core: Duplicate Line"),
"Kraken":
R(Key("c-space"), rspec="Kraken", rdescript="Core: Control Space"),
"dropdown list":
R(Key("a-down"), rspec="dropdown list", rdescript="Core: drop down a drop down list"),

# text formatting
"set [<big>] format (<capitalization> <spacing> | <capitalization> | <spacing>) (bow|bowel)":
Expand Down
4 changes: 2 additions & 2 deletions castervoice/lib/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def curse(direction, direction2, nnavi500, dokick):
def next_line(semi):
semi = str(semi)
Key("escape").execute()
time.sleep(0.25)
time.sleep(0.05)
Key("end").execute()
time.sleep(0.25)
time.sleep(0.05)
Text(semi).execute()
Key("enter").execute()