cireu / counsel-ffdata

Use ivy interface to access your firefox bookmarks and history in Emacs
GNU General Public License v3.0
34 stars 4 forks source link

Support for Chromium-based browsers #6

Open a13 opened 5 years ago

a13 commented 5 years ago

is it possible to add the support for Chromium?

the db filename is ~/.config/$APPNAME/Default/History in most cases

appname could be chromium, google-chrome, vivaldi etc

cireu commented 5 years ago

I seldom use Chromium, so I can't help to maintain the code part of chromium or other browser than Firefox. But it may be a good idea to make this package more extensible.

cireu commented 5 years ago

BTW, I am working on a new feature -- a generic API to make a generic async candidate interface. If that work can be done, it may also help counsel-ffdata to load data asynchronously.

a13 commented 5 years ago

You can make the code more generic, since both firefox and chromium use sqlite dbs, so people can add support for alternative browsers easier. There's a simple history jump script I wrote a long time ago so you can get my idea: https://github.com/a13/scripts/blob/master/webjump.sh

a13 commented 5 years ago

I've taken a look at the code again, and the task looks even simpler: just make :query-stmt customizable (for both bookmarks and history items).

cireu commented 5 years ago

Would you like to open a PR?

cireu commented 5 years ago

@a13 https://github.com/a13/scripts/blob/master/webjump.sh#L19

Is profile.ini a part of Firefox or it's your own file? I can't find such file in my $HOME directory

a13 commented 5 years ago

Is profile.ini a part of Firefox or it's your own file?

was a part of firefox, I don't know if there's one now

Would you like to open a PR?

Maybe a little bit later, kinda busy now