obsidian-toggle-list
obsidian-toggle-list copied to clipboard
[Feature Request] Tag select
Thanks for making this plugin, it is super handy for working with tasks and perfectly complements the other task plugins.
I was hoping to use this plugin to toggle 'status' hashtags on a list, but they are inserted in front of the text and that doesn't make much sense for tasks
Is this possible with current features? I tried {raw} but it wasn't parsed.
This plugin makes dealing with tasks so much easier through hotkeys, daily driving now.
As an aside, I am tempted to extend this plugin with a dropdown/popup tag selector - multi-selecting a range of tags via UI tied to a hotkey would be excellent. And maybe a sort order.
Great work, thanks again for contributing to the community.
Cheers
Hello! Thank you for sharing your thoughts and giving feedback on the project.
Regarding your tag request, have you had a chance to try out the suffix feature? I believe it might be just what you're looking for. To toggle the status of a todo list containing tags like #todo, #later, and #pending, you can set it up like this:
- [ ]
- [ ] || #todo
- [ ] || #later
- [ ] || #pending
As for your suggestion for a tag selection UI, I really appreciate your idea. Not only for tags, but I believe having a UI for all state groups would be very useful as well. I plan to work on implementing this in my free time, and I welcome any contributions you might have. 😄
Sleep deprivation is real. 🤦
Just had a quick think on how contextual GUI could work.
In a normal task management app, right clicking a task is often a primary method of setting properties, so I made a quick mockup of a solution (requires native context menus disabled of course)

- Monkey patch
.menuwith toggletask context UI (assuming custom layout in menu not possible otherwise) - On right click of Checkbox or tag, show toggletask context UI
- OR on right click of line without a selection, show toggletask context UI
- Task states rendered from text (have some ideas on how this could work)
- Tag clicks don't close context menu (preventDefault type thing maybe) allowing multi choice
Ignore styles, just a quick comp. Should be able to use theme styles with clever CSS trickery.
Problem with popovers and this kind of UI, is they often get in the way, get stuck, and I end up disabling them (at least I have with multiple plugins).

Another idea, is to bring up a small popover when right clicking a checkbox, overriding the normal menu showing up in-situ like this, although this would be global UI (set group as global?)

Similar thing when right-clicking on hashtags (global set group I guess):

Hi, I have implemented a popout window with Obsidian's native suggestion editor that can be triggered with a hotkey. For mouse interaction, I think we can add a floating box either at the beginning or end of the matched lines to enable it.
That was quick! Thanks for doing this, it's a great feature.
For me, I only get the the hashtag popover after setting the hotkey for the POP stategroup:


Hi, thank you for providing feedback. Please note that the suggestion editor in Togglelist has a lower priority than the native tag suggestion feature. Therefore, if your cursor is currently on a tag, any updates to the document will only trigger the tag suggestion. Is this the issue that you are experiencing?
I set 'Status Tag' to CTRL+S, the only effect is the tag dropdown appearing if the cursor is after the first hashtags pound symbol, and nothing if before.
Hi, I tried to replicate your setting and here’s what I found.
The popover window only appears when the cursor is not on the tag. Could you please provide more details? A screen recording would be very helpful for me to assist you
https://user-images.githubusercontent.com/29173832/221589241-6412dcf3-7875-4c99-91d1-02af7bbeb5f4.mov

That tag popover only happens because of your plugin, but the other side does not.
Could be a plugin interference, but they are fairly tame:
- Enabled plugins:
['templater-obsidian', 'dataview', 'calendar', 'settings-search', 'cmdr', 'periodic-notes', 'heatmap-calendar', 'obsidian-hide-sidebars-when-narrow', 'hotkeysplus-obsidian', 'obsidian-minimal-settings', 'obsidian-custom-frames', 'open-vscode', 'quickadd', 'mysnippets-plugin', 'obsidian-day-planner', 'dbfolder', 'no-dupe-leaves', 'cm-editor-syntax-highlight-obsidian', 'obsidian-toggle-list', 'custom-sort', 'obsidian-icon-folder', 'omnisearch', 'obsidian-task-progress-bar', 'table-editor-obsidian', 'auto-class', 'make-md', 'nldates-obsidian', 'obsidian-attachment-name-formatting', 'obsidian-tabs', 'obsidian-hotkeys-for-specific-files', 'obsidian-tasks-plugin', 'folder-note-plugin', 'obsidian-hover-editor', 'file-explorer-note-count', 'obsidian-quiet-outline', 'obsidian-fullscreen-plugin']
I can now reproduce it. The suggestion editor will not show when 'obsidian-tasks-plugin' or 'completr' is enabled. Can you try disable 'obsidian-tasks-plugin' and reload obsidian?
Disabled Tasks, reloaded Obsidian, same problem. So it's probably something else in there. I will triage when I get a chance.
Thanks for looking into this.