Giter VIP home page Giter VIP logo

buffertag's Introduction

Buffertag

buffertag screenshot

Buffertag is a very simple plugin which always shows the buffer name in non-focused windows.

This is designed to be used with the set laststatus=3 configuration which removes the unnecessary status lines on each window.

This idea came from enjoying the space saving of set laststatus=3 but missing the ability to quickly reference which buffers are in which windows. I split hard, and I split often.

Usage

Include in Vim Plug (or your package manager of choice)

Plug 'ldelossa/buffertag'

Call setup with an optional config

lua require('buffertag').setup({
    -- accepts any border options that `nvim_open_win` accepts.
    -- see ":help vim.api.nvim_open_win"
    border = "none",
    -- By default if the buffer name is too wide for the pane it's in, it will
    -- display and overlap the pane. By setting this to true, the buffer name will
    -- be truncated to fit within the pane, ensuring the floating window does not
    -- overlap any other panes.
    limit_width = false,
    -- if `vim.bo.modified` is `true` for the current buffer,
    -- display modified symbol before the buffer name.
    modified_symbol = "[+]", -- other modified symbol: "โ—" 
})

Toggle it on and off

: BuffertagToggle

Demo

Checkout the demo video here

buffertag's People

Contributors

hiberabyss avatar jackfranklin avatar ldelossa avatar phdhary avatar trmckay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

buffertag's Issues

Add a LICENSE

Hello,

Would you consider adding a LICENSE to this repository to make the usage terms clear?

As far as I understand the MIT License is a sensible default (and what other plugins such as telescope) use, but as the author and owner that's entirely your choice :)

Thanks!

Configure which tag to show for terminals

First of all, thanks for the cool plugin!

I have a neovim terminal buffer and I would like to let the buffertag show the output of the echo &channel. Is there an option to customize buffertag that way?

React to window resize event

If I have a buffertag displaying for window X, but then resize the window, the buffertag's position isn't redrawn and ends up looking a little off:

Before resize, in correct position:
Screenshot 2022-08-20 at 10 24 11

After resize:
Screenshot 2022-08-20 at 10 24 16

I think we can listen to a resize event/autocmd and re-draw the buffertag. Would you be open to a PR that does that?

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.