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
15 stars 0 forks source link

add crisscross feature to the shortcut "Toggle focus between the editor and preview" #39

Closed ralf3u closed 2 years ago

ralf3u commented 2 years ago

At the moment the "steps to reproduce" can't be followed because the shortcuts "Toggle editor" and "Toggle sidebar" don't exist inside the plugin. So they are just fictional scenarios.

steps to reproduce

possible result the highlighted line is not there any more

expectation the highlighted line should stay in the editor because it makes no sense to let it disappear

possible solution every time when shortcut "Toggle focus between the editor and preview" is pressed, this should be first executed somewhere in the code of the shortcut "Toggle focus between the editor and preview": check if "Toggle editor" is active; if yes: don't execute "Toggle focus between the editor and preview" so, a state file in the shortcut "Toggle focus between the editor and preview" is not necessary

steps to reproduce

for this case, a solution is not necessary, because it could be that someone has a special effect when the webpage is in focus, and the user wants to see the difference between webpage is in focus and not in focus

order of development before to solve this issue, first https://github.com/xiota/geany-preview/issues/37 and https://github.com/xiota/geany-preview/issues/38 should be solved and checked, because maybe other problems will appear

ralf3u commented 2 years ago

I just realized that when shortcut "Toggle Sidebar" is pressed (what corresponds to the shortcut "Toggle editor" in the report), and then "Toggle focus between the editor and sidebar", that the highlighted line is still there.