Thanks! I'm gonna wait for that. In the meantime, I'll try to see what I can come up with using the approach you suggested.
Ok I'm testing it right now on a local empty tiddlywiki. It's working well except for a few things:
1. There is a bug wherein the tiddler is selected but the shortcut is not activated. Let's say I have another tiddler selected. Clicking on the main dropdown menu of the shortcut's target tiddler selects the tiddler but does not activate the shortcut.
2. Seems related to #1. Let's say I have another tiddler selected and I want to edit the target tiddler. Clicking on the edit button of the target tiddler will not activate the shortcut. Only when I exit the edit mode will the shortcut be activated. On the other hand, when the target tiddler is the one selected and the tiddler's shortcut is active, clicking on the edit button of another tiddler will immediately deactivate the tiddler-specific shortcut before entering edit mode. And not after exiting.
3. When I initially create a new tiddler-specific shortcut, it will be active until I select and then deselect the shortcut's target tiddler. So I can have a situation in which an unwanted shortcut is active which could cause confusion. A possible workaround is to create the shortcut first without tagging it with $:/tags/KeyboardShortcut.
Just a suggestion. Instead of having another tiddler to specify which shortcuts to activate/deactivate, how about using a field in the shortcut tiddler to specify the names of tiddlers where the shortcut is active. If a shortcut tiddler has no such field, then it's a global shortcut.
That would happen only once, when creating the shortcut for the first time. If it's becoming an issue, I can add something that checks for this, but I don't think it's that important
thank you very much for testing and your ideas!
Another issue I'm encountering is the TAB focus.
When a tiddler is selected via up/down arrow keys, is it possible to have the TAB key focus shifted to the selected tiddler; i.e., when I press the TAB key repeatedly, focus will move starting from the first focusable element of the selected tiddler.
Currently, let's say I navigate towards the bottom tiddler of the story list, when I press TAB with the intention of stepping thru the elements of the bottom tiddler, I find that the focus is currently in an element of e.g. the topmost tiddler. If there are a lot of tiddlers opened, I will have to press TAB a lot just to move focus to the bottom tiddler. In this case, I just give up and use the mouse.
Thanks. I think I've addressed parts of what you describe. The updates are online, if you want to test
Thanks. I think I've addressed parts of what you describe. The updates are online, if you want to test
Thanks! Really appreciate the work you've been doing. Im gonna test it now and give you feedback.
edited my previous answer
It should be fixed now, it's working pretty well, thanks again for your ideas!I'm making this for my own use, too - so this is a win-win situation ;)
I finally tested the update using the prerelease version.Nice work! I especially love the top search bar and how easily I can start searching and then navigating the results. This functionality should be part of the core, replacing the sidebar search.However, I have encountered a few issues and have some suggestions.1. With the top search bar, there might be times when I'd like to quickly open some or all of the matching tiddlers. I'm thinking maybe having Shift-Enter as a shortcut to select a search result item without closing the search bar while pressing Enter will select the item and close the search bar.
2. In the fields dropdown, pressing Enter to add the field seems to produce confusing behavior. Because after adding a field by pressing Enter and then TAB-ing back to the field name input box and selecting a field using the arrow keys, pressing shift-Enter does not update the input box. It's still empty. What is confusing is that when I enter a field value and either press Enter or click the Add button, the selected field is added. This only happens when using Enter key to add a field.
3. Let's say I have a text input box in a tiddler, is it possible to assign a shortcut that puts focus on the input box? Or any tiddler element for that matter?
4. Once the sidebar is selected via alt-S, how can I go back to storyview via a shortcut?
Your plugin is becoming really good, it's starting to feel like I'm working on a text editor like sublime (my editor of choice), you know just using the keyboard to quickly navigate TW to find stuff or enter content. Really nice :)Once again thank you for your work on this!regards,Eric