From 28caf457072036ba8cdda7399133fa9358759b1a Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Thu, 21 May 2015 18:17:22 -0400 Subject: First version of bookmarks. --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index f3ff3652a..ee9b26169 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ __pycache__ *.pyc +*.swp /build /dist /qutebrowser.egg-info -- cgit v1.2.3-54-g00ecf From 4bc2f63608afc314d30c3bc4ef50ad0e977e6d25 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sat, 11 Jul 2015 19:12:18 -0400 Subject: Renamed bookmark_add to add in bookmark manager. --- .gitignore | 1 + qutebrowser/browser/bookmarks.py | 2 +- qutebrowser/browser/commands.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 696cdc775..6d95e92f4 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ __pycache__ /.tox /testresults.html /.cache +TODO diff --git a/qutebrowser/browser/bookmarks.py b/qutebrowser/browser/bookmarks.py index 1634f4f2e..0343af924 100644 --- a/qutebrowser/browser/bookmarks.py +++ b/qutebrowser/browser/bookmarks.py @@ -95,7 +95,7 @@ class BookmarkManager(QObject): for tpl in self.bookmarks.items()] self._lineparser.save() - def bookmark_add(self, win_id, url, title): + def add(self, win_id, url, title): """Add a new bookmark. Args: diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 4335dd1de..a15ad79dd 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1062,8 +1062,8 @@ class CommandDispatcher: def bookmark_add(self): """Save the current page as a bookmark.""" bookmark_manager = objreg.get('bookmark-manager') - bookmark_manager.bookmark_add(self._win_id, self._current_url(), - self._current_title()) + bookmark_manager.add(self._win_id, self._current_url(), + self._current_title()) @cmdutils.register(instance='command-dispatcher', scope='window', maxsplit=0, -- cgit v1.2.3-54-g00ecf