xiota / geany-preview

Turns Geany into a markdown editor by providing a preview pane in the sidebar to show the formatting of several light-weight languages as they are edited. Supported document types include AsciiDoc, DocBook, Fountain, HTML, LaTeX, Markdown, MediaWiki, reStructuredText, Textile, and Txt2Tags.
GNU General Public License v3.0
12 stars 0 forks source link

the tab-title "Preview" disappears if all other tabs of the sidebar are disabled #32

Closed ralf3u closed 2 years ago

ralf3u commented 2 years ago

Current situation If, except the Preview-tab, all other tabs of the sidebar are disabled, then there is no "Preview" as tab-title any more.

Expectation It would be good, if the Preview-tab-title is always visible as default, even if all other tabs of the sidebar are disabled. As option the tab-title "Preview" could be disabled with something like title_preview=false, if all other tabs of the sidebar are disabled.

Possible solution So, in preview.conf there could be this kind of text:

# title_preview=true*:  tab-title "Preview" is always visible
# title_preview=false:  tab-title "Preview" disappears, if all other tabs of the sidebar are disabled
title_preview=true

Remark If one use only the tab "Preview", then at the moment there is no visible effect for the tab-title "Preview" when sidebar is in focus (see #5).

xiota commented 2 years ago

This looks like a bug. Shouldn't happen in the first place (not to be fixed with an option).

ralf3u commented 2 years ago

This looks like a bug.

Could you please add the bug-label to this issue? Thank you in advance.

xiota commented 2 years ago

I just tried it, and the tabs disappearing is probably done on purpose by Geany. It's not something that would be easy to change with a plugin, and I doubt Geany devs would want to make any changes to make the tab bar stay put.

ralf3u commented 5 months ago

In the report of this issue is this text:

If one use only the tab "Preview", then at the moment there is no visible effect for the tab-title "Preview" when sidebar is in focus (see https://github.com/xiota/geany-preview/issues/5).

Thanks to the plugin Xi/Tweaks now there is a visible effect when tab-title "Preview" is in focus.

If the menu bar and tool bar are disabled and if there is no other tab than Preview in the sidebar: On one side there is the editor and on the other side there is just the webpage, and nothing else. That's quite cool.