Giter Site home page Giter Site logo

Comments (5)

AlexMasterov avatar AlexMasterov commented on August 20, 2024

Makes sense, I like it.

from vim-buftabline.

ap avatar ap commented on August 20, 2024

Hmm. This puts me in a difficult place. I understand the rational argument, and obviously some number of users will like it… I just don’t like how it looks. 😄

OTOH this overlaps with #16 (which I rejected) and #13: if users could specify their own designs for the tabline, you could do this easily.

Hmm.

from vim-buftabline.

asilvadesigns avatar asilvadesigns commented on August 20, 2024

@ap not sure if this is useful at all, I've just been hacking around for my own sake, but I've used this to get the superscript numbers...:

I've placed this within the 'buftabline#render()' function.

let s:number_map = {
      \ '0': '⁰',
      \ '1': '¹',
      \ '2': '²',
      \ '3': '³',
      \ '4': '⁴',
      \ '5': '⁵',
      \ '6': '⁶',
      \ '7': '⁷',
      \ '8': '⁸',
      \ '9': '⁹'
      \ }

And this as a replacement for the 'screen_num' assignment within the for loop within the above function.

let screen_num = show_num ? bufnum : show_ord ? get(s:number_map, l:index, '') : ''

This is the result..:
screen shot 2017-09-05 at 8 53 02 am

from vim-buftabline.

ap avatar ap commented on August 20, 2024

Thanks, @asilvadesigns. How to implement it is the easy part, though. The problem is I don’t like how it looks, so if I implement it, then it must be in such a way that I can turn it off for myself. But I also don’t want to just add a configuration switch every time a user asks for a little appearance tweak, because I don’t want to end up dealing with 43 conditionals and 11 lookup tables. So I need a reasonable design for allowing users to fully specify the appearance without hardcoding each option. That’s why this issue is stalled.

from vim-buftabline.

asilvadesigns avatar asilvadesigns commented on August 20, 2024

@ap gotcha, that makes sense. I suppose any way I could help give me heads up : ), in any case this is really a great plugin and adds really sweet functionality to vim.

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.