2023-06-22 23:01:54 +08:00
|
|
|
# FlyGrep.vim
|
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
[![](https://spacevim.org/img/build-with-SpaceVim.svg)](https://spacevim.org)
|
|
|
|
[![GPLv3 License](https://img.spacevim.org/license-GPLv3-blue.svg)](LICENSE)
|
2023-06-22 23:01:54 +08:00
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|
![searching project](https://img.spacevim.org/35278709-7856ed62-0010-11e8-8b1e-e6cc6374b0dc.gif)
|
2023-06-22 23:01:54 +08:00
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Intro](#intro)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Usage](#usage)
|
|
|
|
- [Command](#command)
|
|
|
|
- [Key bindings in FlyGrep window](#key-bindings-in-flygrep-window)
|
|
|
|
- [FeedBack](#feedback)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Intro
|
|
|
|
|
|
|
|
_FlyGrep.vim_ is a vim/neovim plugin to run the searching tool asynchronously, and display the result on the fly.
|
|
|
|
|
2023-06-22 23:01:54 +08:00
|
|
|
## Install
|
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
Using [dein.vim](https://github.com/Shougo/dein.vim)
|
2023-06-22 23:01:54 +08:00
|
|
|
|
|
|
|
```vim
|
|
|
|
call dein#add('wsdjeg/FlyGrep.vim')
|
|
|
|
```
|
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
Using [vim-plug](https://github.com/junegunn/vim-plug)
|
2023-06-22 23:01:54 +08:00
|
|
|
|
|
|
|
```vim
|
|
|
|
Plug 'wsdjeg/FlyGrep.vim'
|
|
|
|
```
|
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
### Command
|
|
|
|
|
|
|
|
This plugin provides a `:FlyGrep` command.
|
2023-06-22 23:01:54 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
:FlyGrep
|
|
|
|
```
|
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
### Key bindings in FlyGrep window
|
2023-06-22 23:01:54 +08:00
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
| Key Bindings | Descriptions |
|
|
|
|
| ------------------ | --------------------------------------------- |
|
|
|
|
| Tab / Ctrl-j | move cursor to next item |
|
|
|
|
| Shift-Tab / Ctrl-K | move cursor to previous item |
|
|
|
|
| ScrollWheelDown | move cursor to next item |
|
|
|
|
| ScrollWheelUp | move cursor to previous item |
|
|
|
|
| Enter | open file at the cursor line |
|
|
|
|
| Ctrl-t | open item in new tab |
|
|
|
|
| LeftMouse | move cursor to mouse position |
|
|
|
|
| 2-LeftMouse | open file at the mouse position |
|
|
|
|
| Ctrl-f | start filter mode |
|
|
|
|
| Ctrl-v | open item in vertical split window |
|
|
|
|
| Ctrl-s | open item in split window |
|
|
|
|
| Ctrl-q | apply all items into quickfix |
|
|
|
|
| Ctrl-e | toggle fix-string mode |
|
|
|
|
| Ctrl-h | toggle display hidden files |
|
|
|
|
| Ctrl-r | read from register, need insert register name |
|
|
|
|
| Left / Right | move cursor to left or right |
|
|
|
|
| BackSpace | remove last character |
|
|
|
|
| Ctrl-w | remove the Word before the cursor |
|
|
|
|
| Ctrl-u | remove the Line before the cursor |
|
|
|
|
| Ctrl-k | remove the Line after the cursor |
|
|
|
|
| Ctrl-a / Home | Go to the beginning of the line |
|
|
|
|
| End | Go to the end of the line |
|
|
|
|
|
|
|
|
## FeedBack
|
2023-06-22 23:01:54 +08:00
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
The development of this plugin is in [`SpaceVim/bundle/FlyGrep`](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/FlyGrep) directory.
|
2023-06-22 23:01:54 +08:00
|
|
|
|
2024-07-28 14:10:43 +08:00
|
|
|
If you encounter any bugs or have suggestions, please file an issue in the [issue tracker](https://github.com/SpaceVim/SpaceVim/issues)
|