on master help sign in
Add key to settings.yml for opening result links in a new tab
8bcba31Scott Wallace
searx/preferences.py+1−1
@@ -364,7 +364,7 @@ class Preferences(object):
364 choices=themes
364 choices=themes
365 ),
365 ),
366 'results_on_new_tab': MapSetting(
366 'results_on_new_tab': MapSetting(
367− False,
367+ settings['ui'].get('results_on_new_tab', False),
368 map={
368 map={
369 '0': False,
369 '0': False,
370 '1': True,
370 '1': True,
searx/settings.yml+1
@@ -25,6 +25,7 @@ ui:
25 default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
25 default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
26 theme_args :
26 theme_args :
27 oscar_style : logicodev # default style of oscar
27 oscar_style : logicodev # default style of oscar
28+# results_on_new_tab: False # Open result links in a new tab by default
28# categories_order :
29# categories_order :
29# - general
30# - general
30# - files
31# - files