lxde / lxterminal

VTE terminal emulator written in GTK
GNU General Public License v2.0
159 stars 56 forks source link

Allow tab width to be set via "Edit -> Preferences -> Advanced". #59

Closed davesp closed 2 years ago

davesp commented 6 years ago

The goal of this modification is to allow users, who may open many tabs per window, to see the activity of their tabs without having to hit the left- and right-arrows on the tab line to find out if any of their tabs have had activity.

The new tab width takes effect when the next tab is created. If a tab width has not yet been set, the width is set to 100 (the default width in previous releases).

It might make for a cleaner UI if, when the new tab width is set, the current child tab label widgets were iterated-through to change their widths to the new setting; I'm open to suggestions as to how to best make that happen.

The proposed max (1000) may be a little high, but I was thinking about the width of screens these days. (Not sure who would want a tab 1000 pixels wide, though.)

Another option could have the width of each tab auto-resize to fit the contents of its current label, but doing so might defeat the goal of seeing the status of all tabs at once. (A possible enhancement could be a way to bring up a list of all of the tab titles to see their statuses, like "\<Ctrl-A> \<Enter>" in GNU Screen. Another day, perhaps.)

Any and all comments are welcome.

mtasaka commented 5 years ago

Making tabs reorderable as you provided has a problem which is now discussed on https://github.com/lxde/lxterminal/pull/50 .

davesp commented 3 years ago

The "autogen.sh" command results in "No package 'gtk+-2.0' found", and there's no such package in Debian "bullseye/sid".

wb9688 commented 3 years ago

@davesp: The Debian package is called libgtk2.0-dev.

davesp commented 3 years ago

Thank you, that resolved the issue. It's been a while since I tried compiling this branch. Also had to add package "libvte-dev".

davesp commented 2 years ago

Just merged the latest "lxde:master" into "davesp:add-tab-width-pref", and it still builds. Any thoughts on when this feature could be merged to master?