Giter Site home page Giter Site logo

Comments (2)

ofseed avatar ofseed commented on June 15, 2024

Nothing unexpected. I wrote a filter function to filter buffers, which makes only buffers on the current tab or that are modified but not saved to files will be shown up.

If you are familiar with many popular IDEs before, you may want to interact with bufferline just like the tab bar of IDEs. However, buffers are not tabs, even though many users treat them the same. Vim has its own concept of tabs, totally different from the tabs of IDEs, which is more like a window layout or workspace.

The reason I wrote the filter is that the most efficient way to open a file in the current workspace is to search it by a fuzzy finder, rather than check if it already exists in the bufferline and jumps again and again.

This setting is indeed very personal, but it is true that many people who are more familiar with Vim have this habit. If you are interested in the concepts of buffers and tabs in Vim, you can read some articles about it, or you can fork this repository and modify the configuration file and delete the filter function.

from nvim.

fangying avatar fangying commented on June 15, 2024

Thanks for your reply. Well I have read through the doc of bufflerline.lua and now realize that it is the custom_filter function that makes a set of filter buffers show up there. And this is surely a very personal taste. I usually open lots of files
and jumps around when I am doing my job. So I think I should write own filter here as suggested.
Thanks for your help.

from nvim.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.