Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fzf.vim plugin #55

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add fzf.vim plugin #55

wants to merge 5 commits into from

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.

2 participants