benma / visual-regexp.el

A regexp/replace command for Emacs with interactive visual feedback
400 stars 29 forks source link

[ new feature ] hope interactive replacer #70

Open gintering1000 opened 2 years ago

gintering1000 commented 2 years ago

for example M-x) visual-regexp-interactive

user usecase process

  1. user execute 'visual-regexp-interactive'
    • now user can toggle regex, wordlimit, upper/lowercase
  2. user write down [searching keyword]
    • now user can move cursor up and down to highlighted keyword
  3. user input tab or enter for go to replacing keyword input
    • now user can input [replacing keyword] keyword is highlighted
  4. user write down [replacing keyword]
    • before keyword is highlighted
    • replacing keyword is added to next searched keyword at editor
  5. user can replace keyword
    • one keyword replace on cursor and cursor go to next keyword
    • one keyword replace on cursor and cursor go to privous keyword
    • all keyword changed and quit replace interactive status
    • undo one keyword changed
    • undo all keyword changed
    • skip replacing, only cursor move next
    • skip replacing, only cursor move privous

globally replacer is not in emacs world. but ctrlf is work globally now

i hope visual-regexp be better in mordern editor

for example