Keyboard shortcut to delete selected tag from sidebar tag list - howTo?

Hi,
Unfortunately I have been bitten by the RSS > convert hashtags and categories to tags syndrome :frowning:

Result is > 14000 tags that I have to clean up / delete.

What I’m searching for:

  • some way to create a keyb shortcut that will delete the selected tag (preferably e.g. move to “some” group to have a safety net, then later select all from that group and delete, then empty trash)

Problem seems to be that I can not find a keyb shortcut or menu>path>to>delete>tag to open the context (right-click) menu?
If the latter were to exist, I could use it in Keyboard Maestro.

Any help or suggestion most welcome!

If there’s anything you can identify the tags you want to delete with, you could use a smart group to collect them. Perhaps creation date or URL can help to identify them? Then select all items in the smart group and delete or move them.

UI automation is the worst possible approach, I think. You can access the context menu in BetterTouchTool, but would you want to do that for more than 14000 tags?

Unfortunately there is no easy single rule that I can think of to filter these items.

To me, it seems that the easiest way to go through these Tags would be:

  • Sidebar > Tags > unfold (to access the Tags as a list below)
  • Then > keyboard arrow key > downward key > go to the to-be-removed tag “until it is higlighted / selected”
  • Then do the magic keyboard shortcut => either delete or move selected tag to “Tags to be deleted-group”

It’s been a very long time I’ve looked into BetterTouchTool, will look into it’s capabilities, but I would imagine that Keyboard Maestro (which I have) would be at least equally capable… but then again, I might be mistaken..

I don’t know if KM can address items in the context menu.

But still: going about this manually seems error-prone and tedious. Perhaps it’s easier to label those tags that you want to keep and afterwards remove the others, non-labelled ones?

Yes, that’s why I was thinking of creating an automation

move selected tag > to “Tags to be deleted”-group

In a later stadium, sift through the Tags to be deleted group, if all ok, select all and move to Trash > then empty Trash

I think I may have found an improvement:

  • open the Tags group
  • then > in the righthand pane > select topmost tag
  • need to delete? => press opt + cmd + delete

More searching and digging to do to see if I can do the same but instead of delete > move to “Tags-to-be-deleted”-group

If you’re happy with that, go for it.

Looking at Smart Group and Smart Rule:

  • Is there any way to do something like:
    “matches” is a Tag

Or, using the Smart input dialog > How to make sure the “thing” that I want to perform an action upon = a Tag?

@ipanini

I can’t think of a simple way using Keyboard Maestro to do this, but I think there may be a workaround using DEVONthink’s in-built facility to file to the most recent target, which does have a shortcut (cmd-opt-t). So,

  1. Set up your destination group (Tags for Deletion)
  2. Go to the first unnecessary tag and move it manually
  3. Go the next 13,999 tags and press cmd-opt-t (the menu item will show Edit > Move to "Tags for Deletion" again).

You can select multiple tags and the shortcut works the same way.

It will still be an almighty pain, but it gives you something to add to the Keyboard Maestro macro.

Sorry if I’ve misunderstood what you’re after…

You could use a toolbar search for kind:news item:tagged first. Then select all found items and use e.g. Tools > Batch Processing… > Remove All Tags to remove their tags. Afterwards search for kind:ordinarytag item:!data to find all unnecessary tags, trash them and empty the trash. However, I would recommend a backup of your database(s) first.

3 Likes

Thanks for chiming in;

I’m using DEVONthink 3 Pro.
On my mac, Devonthink does not respond to cmd-opt-t?

I’ve done a search in Help and I can’t seem to easily find cmd-opt-t amongst the various Keyboard shortcuts in the Appendix?

Would be interested to find out more!

I remember something about the sidebar not being a valid target for keyboard shortcuts/menu bar commands and script commands using selected records.

Just work from the item list. Here you can ⌘⌫ to move items to the trash, move items to the most recent destination with ⌘⌥T or use the Move To popover (⌃⌘M) to select a destination.

2 Likes

Looks interesting, thanks for chiming in.
The first problem:

  • Kind = HTML text

I was already previously searching on how to isolate RSS feed items

Would it be conceivable to set up some keyboard shortcut for:
delete or remove all Tags from selected item?

I don’t understand what you’re saying:

Do you mean to say that you can’t enter kind:news in the search bar? Or that your tags are all of the kind HTML text?
And what does searching for
kind: ordinarytag item:!data
give you?

Kind is News matches all items inside feeds, the actual type (e.g. HTML) doesn’t matter.

1 Like

Why? Doesn’t the batch process work fine? (It also has a keyboard shortcut, ⌃⌘B)

1 Like

Sorry, I got the menu wrong as I was typing it from memory – it’s Data > Move To > Move to … again, not Edit> …

The feature is definitely in DT3 – I’ve been using it for years. There is a passing reference to it on page 115 of the DT3 manual, but it doesn’t give a shortcut there, and I can’t find one on the shortcuts page either…

I’m (almost) certain that I didn’t add the shortcut myself, but it you’re not seeing it, then you can always create one in System Preferences.

Where / how do you get to this command?

Here’s a screenshot to illustrate my reasoning:

@cgrunenberg already told you earlier: Tools > Batch Process… You even quoted me providing the keyboard shortcut. Did you try pressing it?

Also, you can always search through the menus from the Help menu:


Did you see my earlier reply? The sidebar is not a valid target for keyboard shortcuts. Work from the item list in that case. Just select the Tags group in the sidebar, and you will see all your tags in the item list:

That seems to help.

There is confusion though.
I remember something of an old article about Tags, folders and groups. Can’t retrieve it though, even Wayback Machine hasn’t got it.
There’s mention and a pointer here on the forum, but the link died.

Anyway:
The confusion being that when selected in the lefthand sidebar, it is represented as a tag with the tag label.

Once deleted though, the same tag shifts look and looks now as a folder or group.

Strange enough, when searching the help > Iconology lists “Group is a tag, too”