Git Product home page Git Product logo

Comments (19)

ms-jpq avatar ms-jpq commented on May 14, 2024 1

Can I just say I really enjoyed the comments, love it

let s:iconC = '🐮' " cow because its funny
let s:iconCSharp = '☪️ '
let s:iconCert = '🔑'
let s:iconChangelog = '🍁'
let s:iconClojure = '🦚' " icon based on the Programming Clojure Book's cover

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024 1

Ok so I managed to set up the CI pipeline to give my self automated branch creation whenever you update

ed43a45

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024 1

67e1e25

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024 1

@ms-jpq Nice. Thanks for your work on this!

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

cool icons, i can add that as an option under iconset!

do you mind if i add you to the credits under special thanks ?

right now all icons & colours are imported statically via https://github.com/ms-jpq/chadtree/blob/chad/build.py so I guess when i have some time I can import yours that way too.

i could probably set up github action to do once daily import or something :D

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

cool icons, i can add that as an option under iconset!

Thanks. Was a lot (still is) a lot of work to choose the right icons (or almost right).

do you mind if i add you to the credits under special thanks?

No problem. I'm really grateful.

right now all icons & colours are imported statically via https://github.com/ms-jpq/chadtree/blob/chad/build.py so I guess when i have some time I can import yours that way too.
i could probably set up github action to do once daily import or something :D

I think that this works. Also I think about a better way to provide something like this. We have this need also for the vim-clap plugin.

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

Also I think about a better way to provide something like this

Actually there is no need to do that for me, I will do the dirty work. My plan is pretty simple, I will write CI automation that builds Neovim in a Docker image, execute the VimL from your plugin, and export out the icons.

I will do a diff, if the new icons are different, the CI should open a Pull Request for me to manually review just incase something breaks.

It will take me a while to write this however.

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

Can I just say I really enjoyed the comments, love it

Thanks 😄

It will take me a while to write this however.

Nice. But no problem. I will wait for that so I can move from the NERDTree.

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

@adelarsq

do you notice this happening to other plugins?

图片

Some Emojis seem double width, and I dont know how do u find out which ones are which ?

east_asian_width apperantly doesn't work on emojis

edit: not so much double width as they are eating the single space behind them for some reason, probably because they are too big?

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

The branch is here https://github.com/ms-jpq/chadtree/tree/emoji if you want to play with it

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

do you notice this happening to other plugins?

Yes. This occurs with some emojis. My alternative was to add an extra space on the icon config, but with this occurs some rendering issues with some plugins. For now I keep without to evaluate.

The branch is here https://github.com/ms-jpq/chadtree/tree/emoji if you want to play with it

How fast. I will use that.

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

wait no, Im no done with that yet, its just an evulation branch, I still need to make sure the folder icons and what not are also emojis or else they look odd.

anyways, I think we will need to figure out how to solve the spacing thing, its honestly kind of an eyesore if things are mis aligned, triggers my inner OCD

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

I did an update on the plugin to deal with this for Markdown icon. What you think?

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

Are you using iTerm? I notice that for each terminal these fonts have distinct behaviors. My last change makes Kitty terminal buggy.

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

ya we need to figure out a terminal agnostic way to do this, emojis have werid rendering issues between terminals, I am using iTerm2

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

Maybe related with kovidgoyal/kitty#2500 I will do some research on this. I'm trying to migrate from iTerm to Kitty and did notice this behavior:

The solution is for neovim to add support for unicode variation selectors.

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

unicodedata doesn't seem to help in python.

and for neovim: nvim_strwidth doesn't work either, it gives 1 for ⬇️ and 10 for 🏳️‍🌈.

from chadtree.

adelarsq avatar adelarsq commented on May 14, 2024

and for neovim: nvim_strwidth doesn't work either, it gives 1 for ⬇️ and 10 for 🏳️‍🌈.

Wait... is it binary?! Maybe this the problem on NeoVim. I don't know to say about Vim. I will take a look on that.

from chadtree.

ms-jpq avatar ms-jpq commented on May 14, 2024

So I merged support for using full iconset into main, I just commented out all references to it in the README, I will add it back in when we work out the kinks.

in the main time you can do to use it by doing

lua vim.api.nvim_set_var("chadtree_settings", { use_icons = "emoji" })

from chadtree.

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.