diff options
author | Ryan Farley <ryan.farley@gmx.com> | 2017-09-22 17:27:36 -0500 |
---|---|---|
committer | Ryan Farley <ryan.farley@gmx.com> | 2017-10-17 14:48:56 -0500 |
commit | 799fe5deb3865f67570840ef07c61cc15ddec822 (patch) | |
tree | ad77e903f9460cabc332738415a1c6ed05a98bad /scripts/importer.py | |
parent | 898dde566d09eef010cbeb597ef0d2815f8c149c (diff) | |
download | qutebrowser-799fe5deb3865f67570840ef07c61cc15ddec822.tar.gz qutebrowser-799fe5deb3865f67570840ef07c61cc15ddec822.zip |
default to new search format
Diffstat (limited to 'scripts/importer.py')
-rwxr-xr-x | scripts/importer.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/importer.py b/scripts/importer.py index aa53bccce..56480f762 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -32,8 +32,8 @@ def main(): output_format = '' if args.search_query or args.search_output: bookmark_types = ['search'] - if args.newconfig: - output_format = 'ncsearch' + if args.oldconfig: + output_format = 'oldsearch' else: output_format = 'search' else: @@ -88,8 +88,8 @@ def get_args(): default=False, required=False) parser.add_argument( - '--newconfig', - help="Output search engine format for new config.py format", + '--oldconfig', + help="Output search engine format for old qutebrowser.conf format", default=False, action='store_true', required=False) @@ -142,12 +142,12 @@ def import_netscape_bookmarks(bookmarks_file, bookmark_types, output_format): (tag.string)), } output_template = { - 'ncsearch': { + 'search': { 'search': "c.url.searchengines['{tag[shortcuturl]}'] = " "'{tag[href]}' #{tag.string}" }, - 'search': { + 'oldsearch': { 'search': '{tag[shortcuturl]} = {tag[href]} #{tag.string}', }, 'bookmark': { |