Coder Social home page Coder Social logo

Configurable separator about i3wsr HOT 13 CLOSED

roosta avatar roosta commented on May 24, 2024 1
Configurable separator

from i3wsr.

Comments (13)

roosta avatar roosta commented on May 24, 2024 2

Thank you for helpful feedback, I'll release a new version now

from i3wsr.

roosta avatar roosta commented on May 24, 2024 1

Done, check out release v1.2.1

from i3wsr.

roosta avatar roosta commented on May 24, 2024 1

https://github.com/roosta/i3wsr/releases/tag/v1.2.2

from i3wsr.

steinex avatar steinex commented on May 24, 2024

I almost feel bad about it, but I have one really minor nitpick about this one:

With separator = "", there is a space/gap between icons. This is especially visible when run with --no-names. I think this is the last thing that is holding me back from using i3wsr full time. :D

from i3wsr.

roosta avatar roosta commented on May 24, 2024

I have some issues removing space ATM, not sure why. Looking into it but a fix might not be incoming until next week some time. Could you illustrate what you are trying to do?

from i3wsr.

steinex avatar steinex commented on May 24, 2024

Sure. Right now, my workspaces look like this:
without_spaces

With i3wsr, --no-names and separator = "", it looks like this:
i3wsr

As you can see there is an extra space character between icons and a trailing space after the last icon of a workspace. I'd prefer if they would be absent - if one wants them, they could just use the new separator option for that too I guess.

Thank you very much!

from i3wsr.

roosta avatar roosta commented on May 24, 2024

So you'd like all whitespace removed between icons? I can remove the trailing whitespace no problem but I need some way of separating icons from the lead information in the workspace (workspace number etc) So if I remove spaces between icons i3wsr doesn't know when lead information ends and workspace names start, at least not with the current implementation

from i3wsr.

roosta avatar roosta commented on May 24, 2024

Oh, there is an extra whitespace char between them? Sorry, misunderstood there for a sec, I'll try to fix that. Thanks for your feedback :)

from i3wsr.

roosta avatar roosta commented on May 24, 2024

OK, I believe i fixed the issue in the whitespace branch. Could you pop over to that branch and test it and see if it works for you @steinex?

from i3wsr.

steinex avatar steinex commented on May 24, 2024

Can confirm it works! :)

I noticed that it will remove any whitespace between the icons now though, not just the extra one (at least it looks that way). However, when using separator = " " (mind the space) it's perfectly fine for me now and looks like on the first screenshot I posted above.

Just something to keep in mind, most people want to use something like separator = " | " now I guess so it doesn't look weird - or you bring just that one space back minus the extraneous one. :-)

from i3wsr.

roosta avatar roosta commented on May 24, 2024

The names should now only be separated by separator via some-vector.join() so there isn't any trailing whitespace that I can do anything about (you sure its not the your bar config?) The separator defaults to " | " unless something else is in the config so I think this should work for most users

from i3wsr.

steinex avatar steinex commented on May 24, 2024

Are you sure it defaults to " | "? When I set that explicitely it looks normal, if I uncomment that out or change it to "|" there is no single whitespace left, making it look squeezed.

It seems that with this branch, actually 2 spaces between the icons got removed instead of one. I can live fine with that using " ", I just want you to know so it doesn't change beharviour on users.

from i3wsr.

steinex avatar steinex commented on May 24, 2024

Oh, I missed your second commit in that branch that actually switches the default to " | " (8edb11a).

Just tested with this and everything looks good now!

Thanks for your patience and your work on this! :-)

from i3wsr.

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.