xiota / geanylua-scripts

GeanyLua scripts to add some minor features to Geany. Hide the menubar. Show multiple long-line column markers.
GNU General Public License v2.0
3 stars 0 forks source link

Focus does not work correctly when using two shortcuts in Geany Preview #10

Open ralf3u opened 1 year ago

ralf3u commented 1 year ago

The two shortcuts Toggle sidebar 2 and Switch view (editor↔sidebar) If one of the two shortcuts is pressed two times, then the content-area of the Preview-tab is not in focus.

Help If one want to put the focus on the content-area of the Preview-tab after having pressed one of the two shortcuts, then a help could be to press two times the shortcut Toggle focus between editor and the sidebar (the current built-in-shortcut of Geany Preview).

Possible solution to fix this issue A possible solution is to fork Geanylua, so to create some kind of GeanyLua special, that allows to have access to a common library. So, then in Geany Preview the shortcut Toggle focus between editor and the sidebar needs to be removed and needs to be pasted in the library, so both plugins (Geanylua special and Geany Preview) have access to it.

History The knowledge of this issue is based on https://github.com/xiota/geanylua-scripts/issues/7.

xiota commented 1 year ago

I'm not going to fork GeanyLua. It's too much work to maintain a separate project. If any of my current PRs make progress, I'd be willing to look at submitting more changes.

ralf3u commented 7 months ago

The issue still exists for the shortcut Switch view (editor↔sidebar) in Geany 2.0.

ralf3u commented 7 months ago

The shortcuts Focus sidebar 1 and Focus sidebar 2 and Toggle sidebar 2 also don't work.

ralf3u commented 7 months ago

The shortcuts Toggle editor 1 and Toggle editor 2 also don't work in that way that the content of the Preview-tab is in focus.