Comments (3)
I did a little digging, turns out this already exists!
Just do this:
confirm BufferClose
from barbar.nvim.
As you intuited, the close button and close command do indeed have different functionality.
The commands provided by this plugin were designed with the intention of being familiar for those who know the builtin Vim buffer commands (:bdelete
, :bwipeout
, :bnext
, :bprevious
, etc). For example:
bd foo " close buffer 'foo'
BufferClose foo " close buffer 'foo', preserving layout
bd! foo " force close buffer 'foo'
BufferClose! foo " force close buffer 'foo', preserving layout
However when clicking the UI there's no way to distinguish between a click to "close" and a click to "force close" (at least not in Vim, that I know of), which is where the dialogue came from.
We could certainly investigate adding a new command or config setting which enables this interactivity elsewhere.
Note: It switches to the left tab before I've confirmed the prompt. Should it? Seems premature. Is that another bug?
I'll have to investigate this, thank you for bringing it to my attention!
from barbar.nvim.
That's it! Works perfect, thanks!
from barbar.nvim.
Related Issues (20)
- Show Only Pinned Buffers HOT 7
- empty buffer is focused on startup with '%' in shada HOT 6
- Customizable `auto_hide` count HOT 3
- Question: Is there a way in barbar to disable creating buffer tabs and only enabling tabs? HOT 1
- Switch to last visited tab HOT 3
- Barbar command cannot be executed when I opened a python file using Neovim (Label: bug) HOT 8
- Highlight background color HOT 5
- Can't completely close tab HOT 4
- Remove `bufferline` folder HOT 4
- Support centering & coloring the offset text HOT 2
- Add highlight for the pin icon HOT 4
- Hiding the tabline on my start screen HOT 4
- Quit when calling BufferClose for single tab HOT 5
- Error: notfound key underdouble HOT 1
- [QUESTION]: Group windows inside a single tab? HOT 2
- Closing buffers very quicky causes consistent UI glitch for barbar.nvim HOT 6
- Highlight colors inconsistent between buffers HOT 3
- No devicons for .txt files HOT 14
- Can't get BufferPickDelete working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barbar.nvim.