Removed unused commands and renamed bookmark-save command.

This commit is contained in:
Antoni Boucher 2015-05-23 16:02:02 -04:00
parent 0ee7e40e69
commit aaf35536a7
2 changed files with 1 additions and 4 deletions

View File

@ -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.

View File

@ -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(),