dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

find_and_replace.talon (2612B)


      1 tag: user.find_and_replace
      2 -
      3 hunt this: user.find("")
      4 hunt this <user.text>: user.find(text)
      5 hunt all: user.find_everywhere("")
      6 hunt all <user.text>: user.find_everywhere(text)
      7 hunt case : user.find_toggle_match_by_case()
      8 hunt word : user.find_toggle_match_by_word()
      9 hunt expression : user.find_toggle_match_by_regex()
     10 hunt next: user.find_next()
     11 hunt previous: user.find_previous()
     12 replace this [<user.text>]: user.replace(text or "")
     13 replace all: user.replace_everywhere("")
     14 replace <user.text> all: user.replace_everywhere(text)
     15 replace confirm that: user.replace_confirm()
     16 replace confirm all: user.replace_confirm_all()
     17 
     18 #quick replace commands, modeled after jetbrains
     19 clear last <user.text> [over]: 
     20     user.select_previous_occurrence(text)
     21     sleep(100ms)
     22     edit.delete()
     23 clear next <user.text> [over]: 
     24     user.select_next_occurrence(text)
     25     sleep(100ms)
     26     edit.delete()
     27 clear last clip: 
     28     user.select_previous_occurrence(clip.text())
     29     edit.delete()
     30 clear next clip: 
     31     user.select_next_occurrence(clip.text())
     32     sleep(100ms)
     33     edit.delete()
     34 comment last <user.text> [over]: 
     35     user.select_previous_occurrence(text)
     36     sleep(100ms)
     37     code.toggle_comment()
     38 comment last clip: 
     39     user.select_previous_occurrence(clip.text())
     40     sleep(100ms)
     41     code.toggle_comment()
     42 comment next <user.text> [over]: 
     43     user.select_next_occurrence(text)
     44     sleep(100ms)
     45     code.toggle_comment()
     46 comment next clip: 
     47     user.select_next_occurrence(clip.text())
     48     sleep(100ms)
     49     code.toggle_comment()
     50 go last <user.text> [over]: 
     51     user.select_previous_occurrence(text)
     52     sleep(100ms)
     53     edit.right()
     54 go last clip: 
     55     user.select_previous_occurrence(clip.text())
     56     sleep(100ms)
     57     edit.right()
     58 go next <user.text> [over]: 
     59     user.select_next_occurrence(text)
     60     edit.right()
     61 go next clip: 
     62     user.select_next_occurrence(clip.text())
     63     edit.right()
     64 paste last <user.text> [over]: 
     65     user.select_previous_occurrence(text)
     66     sleep(100ms)
     67     edit.right()
     68     edit.paste()
     69 paste next <user.text> [over]: 
     70     user.select_next_occurrence(text)
     71     sleep(100ms)
     72     edit.right()
     73     edit.paste()
     74 replace last <user.text> [over]: 
     75     user.select_previous_occurrence(text)
     76     sleep(100ms)
     77     edit.paste()
     78 replace next <user.text> [over]:
     79     user.select_next_occurrence(text)
     80     sleep(100ms)
     81     edit.paste()
     82 select last <user.text> [over]: user.select_previous_occurrence(text)
     83 select next <user.text> [over]: user.select_next_occurrence(text)
     84 select last clip: user.select_previous_occurrence(clip.text())
     85 select next clip: user.select_next_occurrence(clip.text())
     86 
     87 
     88