Removed unused commands and renamed bookmark-save command.
This commit is contained in:
parent
0ee7e40e69
commit
aaf35536a7
@ -90,7 +90,6 @@ class BookmarkManager(QObject):
|
|||||||
for tpl in self.bookmarks.items()]
|
for tpl in self.bookmarks.items()]
|
||||||
self._lineparser.save()
|
self._lineparser.save()
|
||||||
|
|
||||||
@cmdutils.register(instance='bookmark-manager', win_id='win_id')
|
|
||||||
def bookmark_add(self, win_id, url, title):
|
def bookmark_add(self, win_id, url, title):
|
||||||
"""Add a new bookmark.
|
"""Add a new bookmark.
|
||||||
|
|
||||||
@ -118,8 +117,6 @@ class BookmarkManager(QObject):
|
|||||||
self.added.emit(title, urlstr)
|
self.added.emit(title, urlstr)
|
||||||
message.info(win_id, "Bookmarks added")
|
message.info(win_id, "Bookmarks added")
|
||||||
|
|
||||||
@cmdutils.register(instance='bookmark-manager', maxsplit=0,
|
|
||||||
completion=[usertypes.Completion.bookmark_by_title])
|
|
||||||
def bookmark_del(self, url):
|
def bookmark_del(self, url):
|
||||||
"""Delete a bookmark.
|
"""Delete a bookmark.
|
||||||
|
|
||||||
|
@ -990,7 +990,7 @@ class CommandDispatcher:
|
|||||||
self._open(url, tab, bg, window)
|
self._open(url, tab, bg, window)
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window')
|
@cmdutils.register(instance='command-dispatcher', scope='window')
|
||||||
def bookmark_save(self):
|
def bookmark(self):
|
||||||
"""Save the current page as a bookmark."""
|
"""Save the current page as a bookmark."""
|
||||||
bookmark_manager = objreg.get('bookmark-manager')
|
bookmark_manager = objreg.get('bookmark-manager')
|
||||||
bookmark_manager.bookmark_add(self._win_id, self._current_url(),
|
bookmark_manager.bookmark_add(self._win_id, self._current_url(),
|
||||||
|
Loading…
Reference in New Issue
Block a user