mirror of
https://github.com/mawww/kakoune.git
synced 2024-10-05 17:18:00 +03:00
Page:
Grep
Pages
Ambiguous Keys
Annotated examples of "Kakoune script"
Avoid the escape key
Bar
Bc
Building
Clang
Community
Ctags
Distinguish between focused and unfocused clients in Tmux
Documenting Plugins
EditorConfig
Eval Exec
Fuzzy finder
Git integration via Tig
Grep
HTML editing
Hacking
Header files
Highlighters
Home
IDE
Implementing user mode
Increment and Decrement
Indentation and Tabulation
Info boxes
Installing Plugins
Integrating Other CLI apps
JSON RPC
Jumplist
Kak daemon helper : 1 session per project
Languages
Line flags
Manipulating dates with Chronic
Migrating from Vim popular plugins
Migrating from Vim
Normal mode commands
OpenBSD
Plugin Managers
Qalculate
Ranger
Readline
Regex
Registers & Clipboard
Registers Clipboard
Reverse search
Running commands at startup
Rust
Selections combinations
Selections
Setting Plugin Options
Shell scripting
Status line
String syntax
TUI
The window scope
Tips for building from source
Undo tree
Wc
Windows tips
Wrapping
Writing Plugins
kak ‐p
macOS tips
zsh zle
3
Grep
Charles Gueunet edited this page 2020-10-06 18:21:23 +02:00
grep is a command-line utility for searching plain-text data sets for lines that match a regular expression.
rc/tools/grep.kak
is a small wrapper around it.
When you use the kakoune's grep
command, it populates a special *grep*
buffer, listing all found occurrences.
You can then use grep-next-match
or grep-previous-match
to navigate between them.
By default, kakoune will run grep -RHn
in the background:
-R
,--dereference-recursive
Read all files under each directory, recursively. Follow all symbolic links-H
,--with-filename
Print the file name for each match.-n
,--line-number
Prefix each line of output with the 1-based line number within its input file
You can customize this value by setting the grepcmd
option.
For instance, you may want to to rely on a similar tool to do the job, such as Ag (The Silver Searcher), Ack or ripgrep:
set-option global grepcmd 'rg --column'
Wiki Home Page
Onboarding
Keys
- Normal mode commands
- Avoid the escape key
- Implementing user mode (Leader key)
- Kakoune explain
- Kakoune TV
Editing
User Interface
Integration with OS and other tools
- Languages
- IDE
- Bar
- Kak daemon helper : 1 session per project
- Registers & Clipboard
- macOS tips
- Windows tips
- Fuzzy finders
- JSON-RPC UI
- bc
- Qalculate!
- wc
- Shell Scripting
- Manipulating dates with Chronic
- Integrating Other CLI apps