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

One additional shortcut for Geany Preview: Toggle sidebar visibility+focus #8

Closed ralf3u closed 1 year ago

ralf3u commented 1 year ago

If one day the focus problem will be solved in Geany Preview (see also https://github.com/xiota/geany-preview/issues/5 and https://github.com/xiota/geany-preview/issues/15), there is one shortcut that could be added to the shortcuts in Geany Preview. Instead of Toggle sidebar visibility there could be two shortcuts with this kind of names: Toggle sidebar visibility+focus and Toggle sidebar visibility; focus stays in the editor.

This report is based on #7. This suggestion for improvement was mentioned for the first time on https://github.com/xiota/geany-preview/issues/38#issuecomment-1445172438.

xiota commented 1 year ago

The problem is geany.activate() is not working. I have looked at the GeanyLua plugin code and don't see why it doesn't work. I have already opened a bug report upstream.

ralf3u commented 1 year ago

To the time where I opened the issue it was not clear if the focus feature could be solved. Now where it is clear that a solution is possible, there is no need for this issue any more. The solution for this issue will be continued on #7.