diff options
author | mathieui <mathieui@mathieui.net> | 2015-02-09 22:13:11 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-02-09 22:35:41 +0100 |
commit | 9141e0c4d316b877cb4e71b5fa7255c40248e867 (patch) | |
tree | 601b03182ac08b481a3c3f775ba7750c5a8b1288 /src/core | |
parent | 2da4474d6a4ee2fd7e4761701043f6cb545f1884 (diff) | |
download | poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.tar.gz poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.tar.bz2 poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.tar.xz poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.zip |
Add a bookmarkstab (fixes #2004)
now we can edit stuff, save or cancel those modifications, and change
the chose storage easily
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/commands.py b/src/core/commands.py index 03e7276d..cacd474b 100644 --- a/src/core/commands.py +++ b/src/core/commands.py @@ -501,12 +501,15 @@ def _add_wildcard_bookmarks(self, method): def command_bookmarks(self): """/bookmarks""" tab = self.get_tab_by_name('Bookmarks', tabs.BookmarksTab) + old_tab = self.current_tab() if tab: self.current_tab_nb = tab.nb else: tab = tabs.BookmarksTab(self.bookmarks) self.tabs.append(tab) self.current_tab_nb = tab.nb + old_tab.on_lose_focus() + tab.on_gain_focus() self.refresh_window() @command_args_parser.quoted(0, 1) |