Skip to content

Commit

Permalink
red: better help
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeping committed Nov 4, 2023
1 parent 438ac70 commit 7fd42a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions data/apps/red.lua
Original file line number Diff line number Diff line change
Expand Up @@ -751,16 +751,19 @@ Mouse:
Some built-in commands:
gfind lua-rexp - find rexp in text (multilines) from cursor
gfind lua-rexp - find rexp in text (multilines)
gfind /lua-rexp/
gsub /lua-rexp/
find lua-rexp - find rexp in text (by lines) form cursor
find lua-rexp - find rexp in text (by lines)
find /lua-rexp/
sub /lua-rexp/
sub /lua-rexp/b/ - change rexp to b by lines
gsub /lua-rexp/b/ - chnage rexp to b globally
sub /lua-rexp/b/ - change rexp to b (by lines)
gsub /lua-rexp/b/ - change rexp to b (multilines)
Note:
You can use ":" delimiter instead of "/" in find, gfind, sub, gsub.
!cmd - run cmd
<cmd - run cmd and get output
Expand Down

0 comments on commit 7fd42a9

Please sign in to comment.