geany / geany

A fast and lightweight IDE
https://www.geany.org
GNU General Public License v2.0
3.03k stars 593 forks source link

message window customization #2492

Open waynelapierre opened 4 years ago

waynelapierre commented 4 years ago

I want to remove the status, complier, messages, scribble, and terminal tabs of Geany message window. Basically, I prefer that when I open the message window Geany automatically opens the terminal window without showing the tabs. How could I get this setup?

elextr commented 4 years ago

AFAIK thats not configurable, its either the whole message window or none.

codebrainz commented 4 years ago

For disabling the other tabs, you can edit these settings under Edit->Preferences->Various:

--- msgwin1/geany.conf  2020-04-30 23:43:49.877942591 -0700
+++ msgwin2/geany.conf  2020-04-30 23:45:33.495469083 -0700
@@ -45,10 +45,10 @@
 compiler_tab_autoscroll=true
 statusbar_template=line: %l / %L    col: %c     sel: %s     %w      %t      %mmode: %M      encoding: %e      filetype: %f      scope: %S
 new_document_after_close=false
-msgwin_status_visible=true
-msgwin_compiler_visible=true
-msgwin_messages_visible=true
-msgwin_scribble_visible=true
+msgwin_status_visible=false
+msgwin_compiler_visible=false
+msgwin_messages_visible=false
+msgwin_scribble_visible=false
 documents_show_paths=true
 sidebar_page=0
 pref_main_load_session=true

For hiding the message window tabs altogether (ie. to hide the lone tab for "Terminal") you could either patch Geany to add an option, make a plugin to do it, or you could use CSS to somewhat okay effect - it would be a lot easier if #2469 gets merged - probably something like:

#notebook_info tab {
  padding: 0px;
  font-size: 0.1em;
  border-width: 0px;
}

I don't think GTK+ CSS has a thing like display: none; or changing the size like real CSS, but above makes the tabs pretty small here. Someone with more GTK+ theming skills could probably find a better way.

teenytabs

I doubt anyone would oppose a pull request to add a preference to hide message window tabs entirely.

waynelapierre commented 4 years ago

Hiding message window tabs is very useful when setting the message window on the right side of Geany. The tabs take a lot of space which could be saved for the editor and terminal parts.

codebrainz commented 4 years ago

Sounds reasonable if someone wants to contribute the change. IMO, it would also make sense for the sidebar tabs. Maybe someone could change the combo boxes in Prefs->Interface->Notebook Tabs->Tab Positions to each contain a "None" item that hides the tabs (and then remove the "Show editor tabs" checkbox).