Kian-Meng Ang
629ebb426f
Fix typos ( #3366 )
...
Found via `codespell -S ./searx/translations,./searx/data,./searx/static -L ans,te,fo,doubleclick,tthe,dum`
2022-09-29 23:06:59 +02:00
Ben Collerson
465bbd4402
[enh] archive.today option for results page ( #3308 )
...
Adds an option to the oscar theme that puts an archive.today link next to the web.archive.org cache link. In preferences change 'Show archive.today links' to 'On'
2022-07-31 16:37:00 +02:00
Ben Collerson
78a87caa0f
[fix] make autofocus configurable ( #1984 ) ( #3285 )
...
* [fix] make autofocus configurable (#1984 )
"Results page: having text cursor still in search field is annoying #1984"
Allows autofocus on the results page to be configured either in the UI
or in the searx server config.
* fix commented code
Co-authored-by: Ben Collerson <benc@benon.com>
2022-07-30 22:28:41 +02:00
dependabot[bot]
1839721161
Bump pylint from 2.12.2 to 2.14.5 ( #3293 )
...
* Bump pylint from 2.12.2 to 2.14.5
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.12.2 to 2.14.5.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.12.2...v2.14.5 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* remove old rules and fix preferences.py
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
Co-authored-by: Noémi Ványi <sitbackandwait@gmail.com>
2022-07-30 22:24:53 +02:00
dependabot[bot]
e271d6d1e1
Bump pylint from 2.9.6 to 2.10.2
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.9.6 to 2.10.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.10.2 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-22 20:53:12 +02:00
dependabot[bot]
0810263bdd
Bump pylint from 2.8.2 to 2.9.6 ( #2934 )
...
* Bump pylint from 2.8.2 to 2.9.6
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.8.2 to 2.9.6.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.8.2...v2.9.6 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* update preferences.py to comply with new pep8
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
Co-authored-by: Noémi Ványi <sitbackandwait@gmail.com>
2021-08-12 21:50:48 +02:00
Noémi Ványi
3d2a5061db
Fix unicode error when using saved preferences URL
...
Closes #2917
Closes #2856
2021-08-07 16:33:47 +02:00
Markus Heiser
ebfd0eb2b7
[fix] default_doi_resolver in preferences
...
Instead of a hard-coded `oadoi.org` default, use the default value from
`settings.yml`.
Fix an issue in the themes: The replacement 'current_doi_resolver' contains the
doi_resolver_url, not the name of the DOI resolver. Compare return value of::
searx.plugins.oa_doi_rewrite.get_doi_resolver(...)
Fix a typo in `get_doi_resolver(..)`: suggested by @kvch:
*L32 should set doi_resolver not doi_resolvers*
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-04 13:36:33 +02:00
renyhp
22489c4b5f
Patch advanced search preferences
2020-11-23 19:13:29 +01:00
renyhp
b00f77059c
Add preference for displaying advanced settings
2020-11-22 18:16:43 +01:00
Noémi Ványi
33e139cae6
Let admins lock user preferences
2020-10-25 18:06:18 +01:00
Alexandre Flament
507896c115
[mod] preferences.py: check language setting with a regex instead of match_language
2020-10-01 11:29:31 +02:00
Dalf
7888377743
Drop Python 2 (3/n): objects
2020-09-10 10:39:04 +02:00
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
2020-09-10 10:39:04 +02:00
Scott Wallace
8bcba31e31
Add key to settings.yml for opening result links in a new tab
...
Closes #1552
Closes #444
2020-09-01 18:10:24 +01:00
Adam Tauber
079783e993
[fix] pylint
2020-08-27 14:38:39 +02:00
Mohamad Safadieh
8dff74dd1b
Make default query submission method configurable
...
Sending queries through POST, while better for privacy, breaks functionality
with certain extensions (e.g. Firefox containers). Since Firefox does
not send cookies when requesting `/opensearch.xml`, users cannot easily
switch to GET on the client side unless they make a custom search
engine. This commit allows admins to modify the default method on their
side so they can set it to GET if needed.
2020-08-09 17:04:47 -04:00
Markus Heiser
1cae4fa88d
preferences.py: implement defaults if unset
...
Implemnts defaults for:
- search.default_lang, search.autocomplete, search.safe_search,
- ui.default_theme, ui.default_locale
- server.image_proxy
This fixes also:
https://github.com/asciimoo/searx/pull/1860#issuecomment-590082955
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-02-23 20:56:05 +01:00
Markus Heiser
179be12732
preferences.py: pylint, SPDX tag & docstrings (no functional change)
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-02-23 20:52:00 +01:00
Marc Abonce Seguin
c0006cadf7
fix default locale and language issues
2020-02-23 02:03:42 -07:00
Adam Tauber
6df4172887
[fix] allow settin custom locale from settins.yml
2020-02-18 00:56:27 +01:00
Markus Heiser
7c79eb9b1b
Merge commit 'refs/pull/1621/head' of https://github.com/asciimoo/searx
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-02-08 15:08:33 +01:00
Noémi Ványi
99435381a8
[enh] introduce private engines
...
This PR adds a new setting to engines named `tokens`.
It expects a list of tokens which lets searx validate
if the request should be accepted or not.
2020-02-08 11:47:39 +01:00
rachmadani haryono
8f44014627
[fix] preference query parameter decoding ( #1599 )
...
Fix issue #1598
2019-07-17 09:42:40 +02:00
Nicolas Gelot
373a66be30
Fix locale and search language
...
Locale and search language was always defined with english value.
This patch inits the locale on `pre_request` in order to define the
default value of locale and language preferences.
Plus the `best_match` function provided by flask babel library did not
work as expected. So the function `match_language` provided
by searx is used to detect that the language from Accepted-Language
header can be used in searx project.
2019-06-17 23:19:15 +02:00
Noémi Ványi
b63d645a52
Revert "remove 'all' option from search languages"
...
This reverts commit 4d1770398a
.
2019-01-07 21:19:00 +01:00
Adam Tauber
f7bb45e891
[enh] admin configurable suspend time of errored engines - closes #1266
2018-08-19 15:30:12 +02:00
Adam Tauber
69d1dd3f86
[enh] configurable default oscar style
2018-08-19 15:28:43 +02:00
Marc Abonce Seguin
772c048d01
refactor engine's search language handling
...
Add match_language function in utils to match any user given
language code with a list of engine's supported languages.
Also add language_aliases dict on each engine to translate
standard language codes into the custom codes used by the engine.
2018-03-27 00:08:03 -06:00
Adam Tauber
2dc02f50c2
[fix] do not save engine/plugin cookies as unknown settings options - fixes #1110
2017-12-11 00:20:28 +01:00
Adam Tauber
49b845051f
Merge pull request #973 from MarcAbonce/languages
...
Remove 'all' option from search languages
2017-12-06 14:34:26 +01:00
marc
4d1770398a
remove 'all' option from search languages
2017-12-06 01:20:15 -06:00
Adam Tauber
e060aedc16
[enh] make custom oscar option configurable from url
2017-12-05 22:30:20 +01:00
Adam Tauber
128eb76604
[fix] allow none as category in preferences - #1086
2017-11-21 15:27:16 +01:00
Noémi Ványi
1b10abfc92
minor fixes of doi resolver
...
Closes #1047
2017-11-01 17:02:38 +01:00
jibe-b
575159b194
[enh] oa_doi_rewrite plugin broadens doai_rewrite
2017-11-01 14:22:26 +01:00
Adam Tauber
8901b7bddb
[fix] pep8
2017-10-26 00:10:57 +02:00
Adam Tauber
5f758b2d39
[mod] compress saved preferences in url
2017-10-26 00:06:03 +02:00
Adam Tauber
38d6ba4066
[enh] generate search url of saved preferences
2017-07-10 12:50:13 +02:00
Adam Tauber
52e615dede
[enh] py3 compatibility
2017-05-15 12:02:30 +02:00
marc
fd65c12921
make search language handling less strict
...
languages.py can change, so users may query on a language that is not
on the list anymore, even if it is still recognized by a few engines.
also made no and nb the same because they seem to return the same,
though most engines will only support one or the other.
2017-03-18 23:44:21 +01:00
Adam Tauber
fa26afafd8
[fix] handle missing mapsettings
2017-01-21 20:08:08 +01:00
marc
e0c270bd72
tests for language support in engines
2016-12-13 23:51:15 -06:00
marc
93233c786a
Refactor search language preference.
2016-12-13 20:59:31 -06:00
marc
727c287856
[fix] backwards compatibility with old language cookies
2016-12-13 19:56:58 -06:00
Noémi Ványi
299c882304
search: make language configurable from settings.yml
2016-11-14 23:32:19 +01:00
Noémi Ványi
12c369e858
preferences: refactor to check consistently input values
2016-11-14 22:29:27 +01:00
Adam Tauber
96f182d75d
[fix] allow empty autocomplete setting
...
closes #756
closes #761
2016-11-14 16:17:11 +01:00
Adam Tauber
b4b0231617
[fix] links in new tabs without js ++ noopener bug fix - closes #674
2016-09-04 15:57:43 +02:00
stepshal
cd9b494cb5
Fix quantity of blank lines after code object.
2016-07-10 21:44:27 +07:00