Skip to content

Commit

Permalink
expand line command actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fidgetingbits committed Jun 4, 2024
1 parent 15d4fdc commit abb2ee1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tags/line_commands/line_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ def line_clone(line: int):
"""Clones specified line at current position"""
actions.edit.jump_line(line)
actions.edit.line_clone()

def line_find_forward(key: str):
"""Finds the next character in the line"""

def line_find_backward(key: str):
"""Finds the previous character in the line"""
3 changes: 3 additions & 0 deletions tags/line_commands/line_commands.talon
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ select camel left: user.extend_camel_left()
select camel right: user.extend_camel_right()
go camel left: user.camel_left()
go camel right: user.camel_right()

go char <user.unmodified_key>: user.line_find_forward(unmodified_key)
go last char <user.unmodified_key>: user.line_find_backward(unmodified_key)

0 comments on commit abb2ee1

Please sign in to comment.