From aaf35536a7714478c451635413bf22966a4a8bbc Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sat, 23 May 2015 16:02:02 -0400 Subject: [PATCH] Removed unused commands and renamed bookmark-save command. --- qutebrowser/browser/bookmarks.py | 3 --- qutebrowser/browser/commands.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/qutebrowser/browser/bookmarks.py b/qutebrowser/browser/bookmarks.py index aac331015..dd0fb3439 100644 --- a/qutebrowser/browser/bookmarks.py +++ b/qutebrowser/browser/bookmarks.py @@ -90,7 +90,6 @@ class BookmarkManager(QObject): for tpl in self.bookmarks.items()] self._lineparser.save() - @cmdutils.register(instance='bookmark-manager', win_id='win_id') def bookmark_add(self, win_id, url, title): """Add a new bookmark. @@ -118,8 +117,6 @@ class BookmarkManager(QObject): self.added.emit(title, urlstr) message.info(win_id, "Bookmarks added") - @cmdutils.register(instance='bookmark-manager', maxsplit=0, - completion=[usertypes.Completion.bookmark_by_title]) def bookmark_del(self, url): """Delete a bookmark. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 42400f38a..6238e549c 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -990,7 +990,7 @@ class CommandDispatcher: self._open(url, tab, bg, window) @cmdutils.register(instance='command-dispatcher', scope='window') - def bookmark_save(self): + def bookmark(self): """Save the current page as a bookmark.""" bookmark_manager = objreg.get('bookmark-manager') bookmark_manager.bookmark_add(self._win_id, self._current_url(),