Skip to content

Conversation

@santiagorodriguez96
Copy link
Collaborator

@santiagorodriguez96 santiagorodriguez96 commented Jun 25, 2024

Motivation

The git grep way of searching through files was a little bit uncomfortable, so we decided to investigate different alternatives for doing it in vim.

We finally run into https://github.com/junegunn/fzf.vim which provides a fuzzy search using fzf and ripgrep.

What's more it also provides other functionality like searching files in the working directory and in the buffer.

Details

Prerequisites

In order to be able to use it, you will need to install fzf and ripgrep or ag for searching through files.

How to use it

  • Use CTRL+/ to search though files contents
  • Use CTRL+\ to search for occurrences of the word under the cursor
  • Use CTRL+p for searching files
  • USe CTRL+b for searching files in the buffer

Customization

There are a lot of ways of customizing fzf.vim commands. Refer to their docs in order to do it. It might be a good idea to add customizations to this plugin if we all feel confortable with them.

Santiago Rodriguez added 5 commits June 25, 2024 13:19
Copy link
Contributor

@juanarias93 juanarias93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it ❤️

Would you mind updating the README, adding the functionalities that fzf provides? Thanks!

@santiagorodriguez96 santiagorodriguez96 force-pushed the sr--add-fzf-vim branch 2 times, most recently from 268a775 to 63196f6 Compare November 29, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants