I am enjoying using KeyboardMaestro to set up TaskPaper windows that I am working on. Some TP projects depend on the sidebar being visible and some, do not need the sidebar to be visible. The challenge I am having, is that the sidebar is currently adjusted by the option-alt-s key combination as either hidden or showing. This means, to show or close it is basically an on/off switch. TaskPaper documents remember the status of the sidebar when they were last opened. When going to different TP documents and using the macro, I am getting very inconsistent results when applying show or hide sidebar.
This may be because sidebar visibility settings are set globally instead of for each document. I framed my question the way I did as it seems very difficult to determine conclusively that a certain TaskPaper document is going to open with or without a sidebar showing. By this I mean that if I set the macro to always open the document, send it to a part of the screen, and simulate the key press of option-alt-s, sometimes I get a sidebar that was already showing to hide, and sometimes I get a hidden sidebar to show. It depends on the previous state of that document or the previous state of the last document I had opened in TaskPaper. I cannot simply open a document, tell it the condition of the sidebar for that document, and have a consistent result.
Why this is important is because I am using two TaskPaper windows side by side in my workflow. I have replaced nvAlt with a Taskpaper document that needs no sidebar and then I open my task list beside it that uses a sidebar. Normally, this works out fine - unless it doesn’t. Sometimes I have to run it a couple of times as it has remembered a sidebar before it opens the first no sidebar window. I also have my writing outline open with a different macro on a different screen, again, side by side and this time with no sidebar for either window.
If the macro opens the documents and positions the windows before the sidebar changes, then the windows have to be repositioned which defeats the point of the macro just a bit.
The only way around this if it were even possible, would be to query if the hide stylesheet menu was selected previously or not, then do an if/then selection. I don’t know that it is possible to query a menu selection like that in TaskPaper?
Is there some way to do this that I might have missed? Or, could this be something to look at for a future version of TaskPaper?
Added: One way of resolving this would be to have separate commands for hide and for show sidebar. Then you could set different key combinations such as, option-alt-s = show, shift-option-alt-s = hide.