Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Spaces in Segments #26

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Spaces in Segments #26

wants to merge 6 commits into from

Conversation

o0th
Copy link

@o0th o0th commented Oct 5, 2016

schermata 2016-10-05 alle 23 10 40

@o0th o0th changed the title Padding in Segments Spaces in Segments Oct 5, 2016
@@ -18,6 +20,15 @@ def __init__(self, *args, **kwargs):
# Other segments are active if the config files states so.
self.active = config.SEGMENTS.get(class_name, False)

if( config.SPACES ):
if class_name not in ['newline', 'root', 'divider', 'padding', 'exitcode']:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's clear to me why NOT adding right and left spaces for newline, divider, padding. But why root and exitcode?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for ExitCode there are already two spaces

        self.text = ' ' + glyphs.CROSS + ' '

I don't like how it appear with more.


For the Root I think it's better this way so it seam a normal prompt line.
I think it's a matter of preference.


if(class_name == 'git'):
self.ls = True
self.rs = False
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not right space for git?

Copy link
Author

@o0th o0th Oct 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed to me there is already a whitespace on the right side, maybe I'm wrong. I will investigate after work.

Copy link
Owner

@puntonim puntonim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I like the changes! I'd also like to improve a bit the code and provide a smoother way to customise the theme. Will do it in the next days/weekend.

@o0th
Copy link
Author

o0th commented Oct 11, 2016

Thank you @nimiq and sorry for the bad code. I'm not a python developer :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants