powerline_mem_segment icon indicating copy to clipboard operation
powerline_mem_segment copied to clipboard

Use Powerline Segment class instead of the old Powerline function interface

Open madhurjain2095 opened this issue 4 years ago • 3 comments

  1. Combined the two functions mem_usage and mem_usage_percent into a single class MemUsageSegment and exposed a single object of that class.
  2. Added documentation on how the parameters are used.
  3. Updated README.md to reflect the new refactored implementation.

madhurjain2095 avatar Apr 09 '20 00:04 madhurjain2095

Inspired from powerline-gitstatus and powerline-docker (both of which I use)

madhurjain2095 avatar Apr 09 '20 00:04 madhurjain2095

Hi, thanks for this - looks good to me. However, I'm wondering what the advantage of this approach is (besides the code maybe being a bit cleaner). Since this is a breaking change, I'm not going to merge it before I'm sure it's actually worth a breaking change :)

mKaloer avatar Apr 12 '20 15:04 mKaloer

Hey, apologies for the delay in response (was busy with my courses)

Yeah, IMO I think it's better to move forward with the new design as per Powerline documents, and as such, reduce the technical debt that occurs with staying with the old version.

Other than that, I don't think there's any other clear advantage with this pull request.

madhurjain2095 avatar Nov 11 '20 06:11 madhurjain2095