[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] show active TAB-setting in state flags in titlebar and minibar
From: |
ObeliX |
Subject: |
[PATCH] show active TAB-setting in state flags in titlebar and minibar |
Date: |
Fri, 8 Jan 2021 01:12:47 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
patch 0001: display TAB-setting in state flags
patch 0002: patch 0001 + code optimizations in minibar()
both patches are against c62d12c
the minibar optimizations do not change any functionality or the layout.
aside from minor changes regarding variables scope, early bail out and
if-nesting, the main goal was to improve readability or more exactly to
allow an easier understanding of minibars layout concept.
the hard-coded numbers obscure the layout calculation of the different
info fields and make it really hard to figure out which and how numbers
must be adjusted, when modifications to fields are made - like the
additional state flag. the numbers are replaced by named constants, that
allow to track which data fields do effect the layout in each of the
calculations.
BTW: I like the minibar. already changed my .nanorc to include 'set
minibar'. ;)
MfG Obel
0001-added-show-active-TAB-setting-in-state-flags.patch
Description: Text Data
0002-added-show-active-TAB-setting-in-state-flags-opt-minibar.patch
Description: Text Data
- [PATCH] show active TAB-setting in state flags in titlebar and minibar,
ObeliX <=