2017-04-24 21:34:48 -07:00
|
|
|
#!/usr/bin/env python2
|
2017-04-09 11:58:55 -07:00
|
|
|
|
2017-04-24 21:34:48 -07:00
|
|
|
import sys
|
2017-04-09 11:58:55 -07:00
|
|
|
from pyfzf import FzfPrompt
|
|
|
|
from lib.FirefoxProfile import FirefoxProfile
|
|
|
|
|
|
|
|
|
2017-04-09 20:36:06 -07:00
|
|
|
with FirefoxProfile.default() as ff:
|
2017-04-09 11:58:55 -07:00
|
|
|
choice = FzfPrompt().prompt(ff.history())
|
|
|
|
if choice:
|
2017-04-09 20:36:06 -07:00
|
|
|
ff.browse("http" + choice[0].split(", http")[1])
|
2017-04-09 11:58:55 -07:00
|
|
|
else:
|
|
|
|
print("Aborted")
|
2017-04-24 21:34:48 -07:00
|
|
|
sys.exit(1)
|