bm icon indicating copy to clipboard operation
bm copied to clipboard

Tidy action

Open lennart opened this issue 13 years ago • 5 comments

How do you currently use this tool for yourself? I wonder whether you use the clear action regularly to keep the tool fast and the generated output slim. (I guess if you use Dropbox for storage, you get versioning for free so my concerns may be a non-issue for you)

If so, I would love to implement some kind of tidy action to push all bookmarks to an external service and run a clear afterwards. That way you could safely shrink the list of bookmarks and start from scratch without losing any information.

Since I know this is opinionated — and you might not be interested in this feature at all — I just wanted to know what would be the simplest solution to build some kind of plugin system for bm.

In the same manner, I would want to implement some kind of notion for sticky bookmarks that might survive tidy, however I guess that would make things overly complex…

Share your thoughts on this and keep up the good work, this is the first bookmarking tool I like to use!

lennart avatar Apr 18 '12 08:04 lennart

hmm not sure what you mean really, you want to save them, but start from scratch? howcome?

tj avatar Apr 18 '12 16:04 tj

darn, it seems I'm struggling to express myself clear enough, I should be working on that.

yes, I try to use a real world scenario:

If those bookmarks are things on my desk, when I clear the desk I just wipe everything off it, while tidy would just put all of them into one of the drawers of my desk so that the desk itself is empty again.

In bm, running clear and tidy has the same effect, running bm again afterwards shows nothing (since your bookmarks file is empty), tidy however just makes sure those bookmarks (which I really badly needed sometime but not now) are stored somewhere safe, say an offsite location (e.g. my server, a git repo you name it).

Does this make the feature clear in contrast to what clear would do?

lennart avatar Apr 18 '12 18:04 lennart

gotcha, it's definitely no something I need, but it sounds like you could achieve similar just with tagging. I actually recently broke this part but bm view design for example would just open those ones up, I just need to add the grep support for that back in

tj avatar Apr 18 '12 18:04 tj

um right, I just used sed on the bookmarks file see here, it's quick and dirty but seems to work

lennart avatar Apr 18 '12 18:04 lennart

I should first fix bm view (without args) and then tell you about it ;)

lennart avatar Apr 18 '12 19:04 lennart