helm/browser/firefox/bin/ffbookmarks

14 lines
313 B
Python
Executable file

#!/usr/bin/env python
from pyfzf import FzfPrompt
from lib.FirefoxProfile import FirefoxProfile
if __name__ == '__main__':
ff = FirefoxProfile.default()
choice = FzfPrompt().prompt(ff.bookmarks())
if choice:
ff.open("http" + choice[0].split(", http")[1])
else:
print("Aborted")