nb icon indicating copy to clipboard operation
nb copied to clipboard

Duplicate bookmark identification

Open sumeet-kg opened this issue 3 years ago • 5 comments

Hi guys

I have started using this to manage my bookmarks. Syncing it with GitHub provide a great way to share and store such data.

Is it possible to identity duplicate bookmarks and warn the user before adding it ? Just a check for url will do.

sumeet-kg avatar Nov 25 '20 19:11 sumeet-kg

+1

cocoonkid avatar Nov 29 '20 15:11 cocoonkid

That makes sense. It should be possible to create a plugin named something like bookmark-duplicate-checker.nb-plugin that uses nb search to check for existing files containing the URL and then displays a confirmation prompt to the user. I'll have to think about how to have it hook into the bookmark or add function. It might be useful to implement it in stages, first as a manually-runnable subcommand. I'll keep this in mind and work toward this.

xwmx avatar Dec 01 '20 17:12 xwmx

Been awhile. What's the word?

nb becomes more headache than help to me if it affords no automatic mechanism for preventing me from unwittingly adding the same bookmarks multiple times.

seconddayout avatar May 11 '22 01:05 seconddayout

@seconddayout I’ve added dupe detection within the target folder, which in most cases is a notebook root. I kept the scope constrained for now to see how it goes. This change is in the latest versions in the repo.

xwmx avatar May 12 '22 21:05 xwmx

@xwmx, dope! Thanks; 'preciate the prompt action and status update. I'll check it out soon.

seconddayout avatar May 12 '22 23:05 seconddayout

Thanks @xwmx

sumeet-kg avatar Apr 22 '23 08:04 sumeet-kg