Giter Site home page Giter Site logo

Comments (5)

ap avatar ap commented on August 20, 2024

There’s code in the thread of #11 for that, but I didn’t think of <Plug> mappings for it. That would be a useful feature to ship. But I won’t ship default keybindings with the plugin (because I don’t think it can do a good enough job of picking defaults, and it would require another on/off preference, which I don’t like adding).

So, I’ll take patches for that – though you may have to tolerate me amending the patches. 😄 But I’ll ship the feature regardless of whether you provide a patch for it.

from vim-buftabline.

MiguelLatorre avatar MiguelLatorre commented on August 20, 2024

+1
I was about to ask for this too.

from vim-buftabline.

cenkalti avatar cenkalti commented on August 20, 2024

Fixed in a3e32bd

from vim-buftabline.

ap avatar ap commented on August 20, 2024

Ah yeah, sorry, forgot to close this.

And sorry it took me so long to get around to pushing it out. The plug names derailed me.

The reason I ended up changing them is because I wanted to have a plug for the 10th buffer. But adding <Plug>BufTabLineSelectBuffer10 mysteriously broke <Plug>BufTabLineSelectBuffer1. Actually of course, it didn’t, it just made it ambiguous, so Vim would wait to see if the next character was a 0 before executing the mapping. It took me a day or so to figure that out… embarrassingly long anyway.

The solution is obvious: putting a non-numeral after the buffer number removes the ambiguity and then Vim can execute the mapping immediately. But that meant I had to pick some other name, and then I got sidetracked thinking about which choice I liked best…

And then I got busy with other stuff and forgot about this patch for a while.

Anyway, hope the wait was worth it. Share and enjoy. 😄

from vim-buftabline.

cenkalti avatar cenkalti commented on August 20, 2024

No problem. The solution is perfect, thank you :)

from vim-buftabline.

Related Issues (20)

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.