pjeby / tag-wrangler

Rename, merge, toggle, and search tags from the Obsidian tag pane
607 stars 18 forks source link

Feature Request: tag open tabs #130

Open notuntoward opened 5 months ago

notuntoward commented 5 months ago

I've been looking for a command that could add the same tag to all open tabs. Tag-wrangler seems like a good place for it.

So, I'm humbling requesting that you add one to this great plugin.

My use case is that, while searching for related notes, I often end up with them all in open tabs. It's only then, having seen the group, that I can think of a good tag name for them. At this point, I'd love to be able to Tag Wrangler: Add Tag to Open Tabs

pjeby commented 5 months ago

Tag Wrangler doesn't even have a way to add a tag to the current tab, though, except by drag-and-drop, so that you can precisely determine where to place it.

notuntoward commented 5 months ago

Does it have a way of iterating through all open tabs?

pjeby commented 5 months ago

There are hotkeys for navigating between tabs that you can use, certainly. I'm not sure what you're asking for here. As I said, TW doesn't support adding tags to files at all except via drag and drop (because you need to specify where you want the tag inserted), and that means that doing it for all open files doesn't make any sense (because you'd need to go to each tab and pick the position).

You're not limited to Tag Wrangler for this functionality in any case; other plugins can add menu items to Tag Wrangler via its "tag-wrangler:contextmenu" event. I'm not sure which plugins provide direct support for that, but I know QuickAdd macros can be set up to run off of events like that, albeit with some Javascript required. You may be able to find someone who can help you write such a macro on the #plugin-advanced channel of the Obsidian Discord server.