multiple_cursors.py (923B)
1 from talon import Context, actions, ui, Module, app 2 3 mod = Module() 4 mod.tag("multiple_cursors", desc="Tag for enabling generic multiple cursor commands") 5 6 7 @mod.action_class 8 class multiple_cursor_actions: 9 def multi_cursor_enable(): 10 """Enables multi-cursor mode""" 11 12 def multi_cursor_disable(): 13 """Disables multi-cursor mode""" 14 15 def multi_cursor_add_above(): 16 """Adds cursor to line above""" 17 18 def multi_cursor_add_below(): 19 """Adds cursor to line below""" 20 21 def multi_cursor_select_fewer_occurrences(): 22 """Removes selection & cursor at last occurrence""" 23 24 def multi_cursor_select_more_occurrences(): 25 """Adds cursor at next occurrence of selection""" 26 27 def multi_cursor_select_all_occurrences(): 28 """Adds cursor at every occurrence of selection""" 29 30 def multi_cursor_add_to_line_ends(): 31 """Adds cursor at end of every selected line""" 32