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

add zoom shortcuts to the Preview #45

Open ralf3u opened 1 year ago

ralf3u commented 1 year ago

Ctrl++ Ctrl+- Ctrl+0

I think that the shortcuts should work when the sidebar is in focus. But I think the best would be that the shortcuts should work when the content-area of the Preview-tab is in focus, what is hard to determine at the moment. It could be that the shortcuts are easier to program with Lua Scripts.

xiota commented 1 year ago

Are you saying you think the shortcuts should allow the editor window to zoom when the sidebar is in focus? Or that those shortcuts should zoom the sidebar when the sidebar is in focus?

ralf3u commented 1 year ago

Are you saying you think the shortcuts should allow the editor window to zoom when the sidebar is in focus? Or that those shortcuts should zoom the sidebar when the sidebar is in focus?

I changed my mind: Those shortcuts should NOT zoom when the sidebar is in focus. The reason is noticed down below.

Let's imagine the sidebar is in focus, but not the Preview-tab, but an other tab of the sidebar. Then if a user press the shortcuts, it will zoom, although it should not zoom, because it should only zoom when the Preview-Tab is in focus or rather when the content-area of the Preview-tab is in focus.

ralf3u commented 1 year ago

I think that this issue has a certain relationship to #5 and #15, because all those issues are about the focus of the content-area of the Preview-tab.