Add preliminary functionality to open array of search results

This commit is contained in:
Kevin Fong 2016-09-01 01:49:41 -07:00
parent 6c1db4e05d
commit f3ed7fcf31

7
buku
View File

@ -1296,6 +1296,13 @@ def prompt(results, noninteractive=False, delete=False):
except Exception as e:
_, _, linenumber, func, _, _ = inspect.stack()[0]
logger.error('%s(), ln %d: %s', func, linenumber, e)
elif " " in nav and is_int(nav.split(" ")[0]) and is_int(nav.split(" ")[1]):
for index in nav.strip().split(' '):
try:
browser_open(unquote(results[int(index)-1][1]))
except Exception as e:
_, _, linenumber, func, _, _ = inspect.stack()[0]
logger.error('%s(), ln %d: %s', func, linenumber, e)
else:
break