File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- from talon import Context , actions
1
+ from talon import Context , actions , app
2
2
3
3
from ..actions .get_text import get_text
4
4
from ..cursorless_command_server import run_rpc_command_no_wait
@@ -17,9 +17,13 @@ class Actions:
17
17
def cursorless_private_run_find_action (targets : dict ):
18
18
"""Find text of targets in editor"""
19
19
texts = get_text (targets , ensure_single_target = True )
20
+ search_text = texts [0 ]
21
+ if len (search_text ) > 200 :
22
+ search_text = search_text [:200 ]
23
+ app .notify ("Search text is longer than 200 characters; truncating" )
20
24
run_rpc_command_no_wait ("actions.find" )
21
25
actions .sleep ("50ms" )
22
- actions .insert (texts [ 0 ] )
26
+ actions .insert (search_text )
23
27
24
28
def cursorless_show_settings_in_ide ():
25
29
"""Show Cursorless-specific settings in ide"""
You can’t perform that action at this time.
0 commit comments