Skip to content

Commit

Permalink
fix: bug in the rofi select string parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Dec 2, 2019
1 parent 33b62ef commit 0a403a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion marcador/rofi_marcador.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def disp_bookmarks(self):
return [bookmark_to_str(bookmark) for bookmark in self.db.get_bookmarks()]

def select(self, index):
self.db.open_bookmark(self.bookmarks[index][0])
self.db.open_bookmark(self.bookmarks[index].split(',')[0])

def add(self):
text = clipboard.paste()
Expand Down Expand Up @@ -56,6 +56,7 @@ def dispatch(self, index, key):

def launch(self):
self.bookmarks = self.disp_bookmarks()
print(self.bookmarks)
index, key = self.rofi.select("> ",
self.bookmarks,
key1=('Alt+n', "Add new bookmark"),
Expand Down

0 comments on commit 0a403a3

Please sign in to comment.