KeyRoutines
StepFreelist.unique

Remove duplicate items from a list automatically

Remove duplicates keeps one copy of each value in a list and drops the repeats. It's the tidy-up step after collecting things from several places.

How it works

  • Pass the list to clean up.
  • It returns the cleaned list, how many items are left and how many repeats were removed.
  • The original list isn't changed.

Routines that use it

Unique links

Find every link in some text with Find with a pattern, remove duplicates and open them with Open URLs.

Clean tags

Split a comma list with Split text, drop repeats and join it again with Join list.

Merged lists

Add items from two sources with Add to list, then remove duplicates before saving.

Settings

SettingWhat it does
ListThe list to clean up.

Questions

How do I remove duplicate lines in KeyRoutines?
Split the text into lines with Split text, run Remove duplicates, then join it back with Join list.
Does it tell me how many duplicates it found?
Yes, the removed result is the number of repeats it dropped.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.