https://github.com/jcocozza/fs
very simple find string
https://github.com/jcocozza/fs
search-in-text
Last synced: 6 months ago
JSON representation
very simple find string
- Host: GitHub
- URL: https://github.com/jcocozza/fs
- Owner: jcocozza
- Created: 2024-07-23T00:21:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-31T00:08:29.000Z (about 1 year ago)
- Last Synced: 2025-02-01T19:16:57.768Z (8 months ago)
- Topics: search-in-text
- Language: Vim Script
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fs
Fs is a text file search tool. It searches for regex pattern matches in the directory and subdirectories that it is told to.
By default is will start searching in the directory it is located in.I wanted to learn a little more about vim/vimscript so I decided to build a (very) simplified version of [the_silver_searcher](https://github.com/ggreer/the_silver_searcher).
The basic design was inspired by [fzf.vim](https://github.com/junegunn/fzf.vim)Both of these tools are way better then Fs.
## Install
The binary is located in [releases](https://github.com/jcocozza/fs/releases).
For use in vim you can just use vim's built in plugin manager.
```bash
cd ~/.vim/pack/git-plugins/start
git clone https://github.com/jcocozza/fs.git
```
The `fs` binary needs to be in your path to use the vim plugin.## Searching in Vim
The vim plugin should work out of the box provided the `fs` binary is in your path.Launch it with `:Fs`.
You will be prompted to enter the search pattern. Once you start typing, results will be asynchronously loaded.
To leave the search window press ``.
`` will drop you into the file that you selected.
Use arrow keys (`/`) to navigate in the resulting file list.