index.html 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="Docutils 0.20.1: https://docutils.sourceforge.io/" />
  7. <title>Searx-Qt documentation</title>
  8. <style type="text/css">
  9. /*
  10. :Author: CYBERDEViL
  11. :Contact: cyberdevilnl at protonmail d0t com
  12. :Copyright: This stylesheet has been placed in the public domain.
  13. Stylesheet for use with Docutils.
  14. https://docutils.sourceforge.io/docs/howto/html-stylesheets.html
  15. */
  16. /*@import url(html4css1.css);*/
  17. body {
  18. max-width: 800px;
  19. background-color: #161616;
  20. color: #bcb;
  21. }
  22. a {
  23. color: #11aa11;
  24. }
  25. table {
  26. border: none;
  27. background-color: #191919;
  28. }
  29. tr {
  30. border: none;
  31. }
  32. th {
  33. border: none;
  34. text-align: left;
  35. }
  36. td {
  37. border: none;
  38. border-bottom: 1px solid #114411;
  39. text-align: left;
  40. }
  41. /*indent sections a little*/
  42. .section {
  43. margin-left: 12px;
  44. }
  45. /*indent section contents a little*/
  46. p, pre, table {
  47. margin-left: 12px;
  48. }
  49. pre {
  50. font-family: monospace;
  51. background-color: #222;
  52. border: 1px solid #111;
  53. padding: 5px;
  54. }
  55. h1 {
  56. background-color: #222;
  57. padding: 6px;
  58. }
  59. h1 a {
  60. color: #fff;
  61. text-decoration: none;
  62. }
  63. h1 a:hover {
  64. text-decoration: underline;
  65. }
  66. img.header {
  67. max-width: 800px;
  68. height: auto;
  69. width: 100%;
  70. }
  71. img.align-right {
  72. clear: right;
  73. float: right;
  74. margin-left: 1em
  75. }
  76. </style>
  77. </head>
  78. <body>
  79. <div class="document">
  80. <div class="section" id="searx-qt">
  81. <h1>Searx-Qt</h1>
  82. <div class="section" id="desktop-client-application-for-searx-searxng-searx-space">
  83. <h2>Desktop client application for Searx/SearXNG/searx-space</h2>
  84. <p>This is documentation for Searx-Qt version 0.4.0-alpha1</p>
  85. <img alt="Searx-Qt v0.3 screenshot." class="header" src="images/screenshot_0_4a1.png" />
  86. </div>
  87. </div>
  88. <div class="section" id="index-1">
  89. <span id="index"></span><h1>Index</h1>
  90. <ul class="simple">
  91. <li><a class="reference internal" href="#index">Index</a></li>
  92. <li><a class="reference internal" href="#about">About</a></li>
  93. <li><ul class="first">
  94. <li><a class="reference internal" href="#about-summary">Summary</a></li>
  95. </ul>
  96. </li>
  97. <li><ul class="first">
  98. <li><a class="reference internal" href="#about-source">Source</a></li>
  99. </ul>
  100. </li>
  101. <li><ul class="first">
  102. <li><a class="reference internal" href="#about-license">License</a></li>
  103. </ul>
  104. </li>
  105. <li><ul class="first">
  106. <li><a class="reference internal" href="#about-dependencies">Dependencies</a></li>
  107. </ul>
  108. </li>
  109. <li><ul class="first">
  110. <li><a class="reference internal" href="#about-translations">Translations</a></li>
  111. </ul>
  112. </li>
  113. <li><ul class="first">
  114. <li><a class="reference internal" href="#about-contact">Contact</a></li>
  115. </ul>
  116. </li>
  117. <li><a class="reference internal" href="#getting-started">Getting started</a></li>
  118. <li><ul class="first">
  119. <li><a class="reference internal" href="#getting-started-install-dependencies">Install dependencies</a></li>
  120. </ul>
  121. </li>
  122. <li><ul class="first">
  123. <li><a class="reference internal" href="#getting-started-installation">Installation</a></li>
  124. </ul>
  125. </li>
  126. <li><a class="reference internal" href="#usage">Usage</a></li>
  127. <li><ul class="first">
  128. <li><a class="reference internal" href="#usage-profiles">Profiles</a></li>
  129. </ul>
  130. </li>
  131. <li><ul class="first">
  132. <li><a class="reference internal" href="#usage-settings">Settings</a></li>
  133. </ul>
  134. </li>
  135. <li><ul class="first">
  136. <li><a class="reference internal" href="#usage-instances">Instances</a></li>
  137. </ul>
  138. </li>
  139. <li><ul class="first">
  140. <li><a class="reference internal" href="#usage-search">Search</a></li>
  141. </ul>
  142. </li>
  143. <li><a class="reference internal" href="#development">Development</a></li>
  144. <li><ul class="first">
  145. <li><a class="reference internal" href="#development-themes">Themes</a></li>
  146. </ul>
  147. </li>
  148. <li><ul class="first">
  149. <li><a class="reference internal" href="#development-translations">Translations</a></li>
  150. </ul>
  151. </li>
  152. </ul>
  153. </div>
  154. <div class="section" id="about-1">
  155. <span id="about"></span><h1><a class="reference internal" href="#about">About</a></h1>
  156. <div class="section" id="summary">
  157. <span id="about-summary"></span><h2><a class="reference internal" href="#about-summary">Summary</a></h2>
  158. <p>Search with <tt class="docutils literal">Searx</tt>/<tt class="docutils literal">SearXNG</tt> instances without the need for a complex
  159. web-browser.</p>
  160. <p>Searx-Qt is a desktop application that lets you search on
  161. public <tt class="docutils literal">SearXNG</tt> instances listed on <tt class="docutils literal"><span class="pre">https://searx.space</span></tt> (or you
  162. can add <tt class="docutils literal">Searx</tt> or <tt class="docutils literal">SearXNG</tt> instance urls manually).</p>
  163. <p>The aim of the project is to preform search operations on <tt class="docutils literal">Searx</tt>/
  164. <tt class="docutils literal">SearXNG</tt> instances with the use of their API and without the need for a
  165. complex web-browser. <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> will do the bare minimum of what is
  166. required to search, no cookies and no javascript. Just render a
  167. <tt class="docutils literal">Searx</tt>/<tt class="docutils literal">SearXNG</tt> API request to something usefull.</p>
  168. <p>Since version <cite>0.2</cite> it is also possible to manage your own (private?)
  169. instances with the use of a 'user' profile.</p>
  170. <div class="section" id="searx">
  171. <h3>Searx</h3>
  172. <p>The <tt class="docutils literal">Searx</tt> project is no longer maintained but for now <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt>
  173. will still support it.</p>
  174. <ul class="simple">
  175. <li>API Docs: <a class="reference external" href="https://searx.github.io/searx/dev/search_api.html">https://searx.github.io/searx/dev/search_api.html</a></li>
  176. <li>Source: <a class="reference external" href="https://github.com/searx/searx">https://github.com/searx/searx</a></li>
  177. <li>License: AGPL3</li>
  178. <li>Status: Inactive</li>
  179. </ul>
  180. </div>
  181. <div class="section" id="searxng">
  182. <h3>SearXNG</h3>
  183. <ul class="simple">
  184. <li>API Docs: <a class="reference external" href="https://docs.searxng.org/dev/search_api.html">https://docs.searxng.org/dev/search_api.html</a></li>
  185. <li>Source: <a class="reference external" href="https://github.com/searxng/searxng">https://github.com/searxng/searxng</a></li>
  186. <li>License: AGPL3</li>
  187. <li>Status: Active</li>
  188. </ul>
  189. </div>
  190. <div class="section" id="searx-space">
  191. <h3>searx-space</h3>
  192. <p>The <tt class="docutils literal"><span class="pre">searx-space</span></tt> project lists public <tt class="docutils literal">SearXNG</tt> instances with
  193. statistics. The official instance is running at <tt class="docutils literal"><span class="pre">https://searx.space/</span></tt>.
  194. This is where <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> will request a list with instances when the update
  195. button is pressed by default (the <tt class="docutils literal"><span class="pre">searx-space</span></tt> url can be changed in the
  196. settings).</p>
  197. <ul class="simple">
  198. <li>Source: <a class="reference external" href="https://github.com/searxng/searx-space">https://github.com/searxng/searx-space</a></li>
  199. <li>License: AGPL3</li>
  200. </ul>
  201. </div>
  202. </div>
  203. <div class="section" id="source">
  204. <span id="about-source"></span><h2><a class="reference internal" href="#about-source">Source</a></h2>
  205. <p><a class="reference external" href="https://notabug.org/CYBERDEViL/searx-qt">https://notabug.org/CYBERDEViL/searx-qt</a></p>
  206. </div>
  207. <div class="section" id="license">
  208. <span id="about-license"></span><h2><a class="reference internal" href="#about-license">License</a></h2>
  209. <ul class="simple">
  210. <li>GPL3 <a class="reference external" href="https://www.gnu.org/licenses/gpl-3.0.en.html">https://www.gnu.org/licenses/gpl-3.0.en.html</a></li>
  211. </ul>
  212. </div>
  213. <div class="section" id="dependencies">
  214. <span id="about-dependencies"></span><h2><a class="reference internal" href="#about-dependencies">Dependencies</a></h2>
  215. <table border="1" class="docutils">
  216. <colgroup>
  217. <col width="12%" />
  218. <col width="11%" />
  219. <col width="11%" />
  220. <col width="66%" />
  221. </colgroup>
  222. <thead valign="bottom">
  223. <tr><th class="head">name</th>
  224. <th class="head">version</th>
  225. <th class="head">license</th>
  226. <th class="head">URL</th>
  227. </tr>
  228. </thead>
  229. <tbody valign="top">
  230. <tr><td>python</td>
  231. <td>3</td>
  232. <td>PSFL</td>
  233. <td><a class="reference external" href="https://docs.python.org/3/license.html">https://docs.python.org/3/license.html</a></td>
  234. </tr>
  235. <tr><td>requests</td>
  236. <td><ul class="first last simple">
  237. <li></li>
  238. </ul>
  239. </td>
  240. <td>Apache 2</td>
  241. <td><a class="reference external" href="http://docs.python-requests.org/en/master/">http://docs.python-requests.org/en/master/</a></td>
  242. </tr>
  243. <tr><td>jsonschema</td>
  244. <td>&gt;= 4.10</td>
  245. <td>MIT</td>
  246. <td><a class="reference external" href="https://github.com/python-jsonschema/jsonschema">https://github.com/python-jsonschema/jsonschema</a></td>
  247. </tr>
  248. <tr><td>PyQt5</td>
  249. <td><ul class="first last simple">
  250. <li></li>
  251. </ul>
  252. </td>
  253. <td>GPL3</td>
  254. <td><a class="reference external" href="https://www.riverbankcomputing.com/software/pyqt/intro">https://www.riverbankcomputing.com/software/pyqt/intro</a></td>
  255. </tr>
  256. <tr><td>urllib3</td>
  257. <td><ul class="first last simple">
  258. <li></li>
  259. </ul>
  260. </td>
  261. <td>MIT</td>
  262. <td><a class="reference external" href="https://urllib3.readthedocs.io/">https://urllib3.readthedocs.io/</a></td>
  263. </tr>
  264. </tbody>
  265. </table>
  266. <p><strong>Optional for socks proxy support</strong>:</p>
  267. <blockquote>
  268. <table border="1" class="docutils">
  269. <colgroup>
  270. <col width="14%" />
  271. <col width="15%" />
  272. <col width="15%" />
  273. <col width="56%" />
  274. </colgroup>
  275. <thead valign="bottom">
  276. <tr><th class="head">name</th>
  277. <th class="head">version</th>
  278. <th class="head">license</th>
  279. <th class="head">URL</th>
  280. </tr>
  281. </thead>
  282. <tbody valign="top">
  283. <tr><td>pysocks</td>
  284. <td><ul class="first last simple">
  285. <li></li>
  286. </ul>
  287. </td>
  288. <td>BSD</td>
  289. <td><a class="reference external" href="https://github.com/Anorov/PySocks">https://github.com/Anorov/PySocks</a></td>
  290. </tr>
  291. </tbody>
  292. </table>
  293. </blockquote>
  294. <p><strong>Building</strong>:</p>
  295. <blockquote>
  296. <table border="1" class="docutils">
  297. <colgroup>
  298. <col width="11%" />
  299. <col width="11%" />
  300. <col width="11%" />
  301. <col width="67%" />
  302. </colgroup>
  303. <thead valign="bottom">
  304. <tr><th class="head">name</th>
  305. <th class="head">version</th>
  306. <th class="head">license</th>
  307. <th class="head">URL</th>
  308. </tr>
  309. </thead>
  310. <tbody valign="top">
  311. <tr><td>gettext</td>
  312. <td><ul class="first last simple">
  313. <li></li>
  314. </ul>
  315. </td>
  316. <td>GPL</td>
  317. <td><a class="reference external" href="https://www.gnu.org/software/gettext/">https://www.gnu.org/software/gettext/</a></td>
  318. </tr>
  319. <tr><td>PyQt5-dev</td>
  320. <td>Qt5</td>
  321. <td>GPL3</td>
  322. <td><a class="reference external" href="https://www.riverbankcomputing.com/software/pyqt/intro">https://www.riverbankcomputing.com/software/pyqt/intro</a></td>
  323. </tr>
  324. </tbody>
  325. </table>
  326. </blockquote>
  327. </div>
  328. <div class="section" id="translations">
  329. <span id="about-translations"></span><h2><a class="reference internal" href="#about-translations">Translations</a></h2>
  330. <p>The default language is English.</p>
  331. <p>Since version <cite>0.2</cite> Searx-Qt is able (application-wise, not search results) to
  332. be fully translated with the use of gettext and <cite>.po .pot</cite> files. However the
  333. only translation available currently is for the Dutch language. If you like to
  334. translate Searx-Qt in your language then you can find a example of how to do
  335. that in the <a class="reference internal" href="#development">development section</a>. Please consider opening a
  336. PR on <tt class="docutils literal"><span class="pre">https://notabug.org/CYBERDEViL/searx-qt</span></tt> after your translation has
  337. finished.</p>
  338. </div>
  339. <div class="section" id="contact">
  340. <span id="about-contact"></span><h2><a class="reference internal" href="#about-contact">Contact</a></h2>
  341. <p>Please open a issue on <tt class="docutils literal"><span class="pre">https://notabug.org/cyberdevil/searx-qt</span></tt>.</p>
  342. </div>
  343. </div>
  344. <div class="section" id="getting-started-1">
  345. <span id="getting-started"></span><h1><a class="reference internal" href="#getting-started">Getting started</a></h1>
  346. <div class="section" id="install-dependencies">
  347. <span id="getting-started-install-dependencies"></span><h2><a class="reference internal" href="#getting-started-install-dependencies">Install dependencies</a></h2>
  348. <p><strong>Note:</strong> <tt class="docutils literal"><span class="pre">python-requests</span></tt> is also dependent on <tt class="docutils literal"><span class="pre">python-urllib3</span></tt> ;
  349. so <tt class="docutils literal"><span class="pre">python-urllib3</span></tt> will be installed with <tt class="docutils literal"><span class="pre">python-requests</span></tt>
  350. (No need to do a explicit install).</p>
  351. <div class="section" id="debian-ubuntu-based">
  352. <h3>Debian / Ubuntu based</h3>
  353. <p>Install required dependencies:</p>
  354. <pre class="literal-block">
  355. # apt update
  356. # apt upgrade
  357. # apt install python3 python3-requests python3-pyqt5 gettext pyqt5-dev-tools python3-jsonschema
  358. </pre>
  359. <p><strong>Optional</strong> for socks proxy support:</p>
  360. <pre class="literal-block">
  361. # apt install python3-socks
  362. </pre>
  363. </div>
  364. <div class="section" id="arch-based">
  365. <h3>Arch based</h3>
  366. <p>Install required dependencies:</p>
  367. <pre class="literal-block">
  368. # pacman -Syu python python-requests python-jsonschema python-pyqt5 gettext qt5-tools
  369. </pre>
  370. <p><strong>Optional</strong> for socks proxy support:</p>
  371. <pre class="literal-block">
  372. # pacman -S python-pysocks
  373. </pre>
  374. </div>
  375. </div>
  376. <div class="section" id="installation">
  377. <span id="getting-started-installation"></span><h2><a class="reference internal" href="#getting-started-installation">Installation</a></h2>
  378. <p>It is always recommended to let the package-manager of your system
  379. do the installing of software, so your package-manager will keep
  380. track of files installed. Only use <tt class="docutils literal">setup.py</tt> directly if you
  381. know what you are doing.</p>
  382. <p>Since Searx-Qt isn't available in any GNU/Linux distribution (yet?); the
  383. best option is to create a package for your distribution yourself from the
  384. latest release. This will also mean that you have to manually update
  385. Searx-Qt if there is a new version available.</p>
  386. <p><strong>Note:</strong> <a class="reference external" href="https://notabug.org/CYBERDEViL/searx-qt/releases">https://notabug.org/CYBERDEViL/searx-qt/releases</a></p>
  387. <p><strong>Note:</strong> noticed the <tt class="docutils literal">#</tt> or <tt class="docutils literal">$</tt> before every command? When there is a
  388. <tt class="docutils literal">$</tt> before the command, it should be run as a regular user. <tt class="docutils literal">#</tt> as root.</p>
  389. <div class="section" id="debian-based">
  390. <h3>Debian based</h3>
  391. <p>The steps below describe how to get a specific version of Searx-Qt; then
  392. package and install it. This method is available from version
  393. <tt class="docutils literal"><span class="pre">0.1-beta2</span></tt> and up.</p>
  394. <ol class="arabic">
  395. <li><p class="first">Make sure you have <tt class="docutils literal"><span class="pre">python3-stdeb</span></tt> and <tt class="docutils literal">git</tt> installed:</p>
  396. <pre class="literal-block">
  397. # apt install python3-stdeb git
  398. </pre>
  399. </li>
  400. <li><p class="first">Creating a working directory and <tt class="docutils literal">cd</tt> in to it, you may
  401. change this to your own preference:</p>
  402. <pre class="literal-block">
  403. $ mkdir ~/git
  404. $ cd ~/git
  405. </pre>
  406. </li>
  407. <li><p class="first">Cloning the repository and <tt class="docutils literal">cd</tt> in to it:</p>
  408. <pre class="literal-block">
  409. $ git clone &quot;https://notabug.org/CYBERDEViL/searx-qt.git&quot; &quot;searx-qt&quot;
  410. $ cd searx-qt
  411. </pre>
  412. </li>
  413. <li><p class="first">Checkout a specific version:</p>
  414. </li>
  415. </ol>
  416. <blockquote>
  417. <p><strong>Note:</strong> get a list with available tags (versions) with the
  418. <tt class="docutils literal">git tag</tt> command.</p>
  419. <p>Below is a example to checkout version <tt class="docutils literal"><span class="pre">0.3-beta1</span></tt>:</p>
  420. <pre class="literal-block">
  421. $ git checkout 0.3-beta1
  422. </pre>
  423. </blockquote>
  424. <ol class="arabic" start="5">
  425. <li><p class="first">Create .deb:</p>
  426. <pre class="literal-block">
  427. $ ./utils/gen_deb.sh
  428. </pre>
  429. </li>
  430. <li><p class="first">Install the created package:</p>
  431. <pre class="literal-block">
  432. # dpkg -i ./deb_dist/python3-searx-qt_0.3-beta1-1_all.deb
  433. </pre>
  434. </li>
  435. </ol>
  436. </div>
  437. <div class="section" id="arch-based-1">
  438. <h3>Arch based</h3>
  439. <p>For Arch based distributions there is a package available in the AUR;
  440. <a class="reference external" href="https://aur.archlinux.org/packages/searx-qt/">https://aur.archlinux.org/packages/searx-qt/</a></p>
  441. <ol class="arabic">
  442. <li><p class="first">Make sure you have <tt class="docutils literal">git</tt> installed:</p>
  443. <pre class="literal-block">
  444. # pacman -S git
  445. </pre>
  446. </li>
  447. <li><p class="first">Creating a working directory and <tt class="docutils literal">cd</tt> in to it, you may change this
  448. to your own preference:</p>
  449. <pre class="literal-block">
  450. $ mkdir ~/pkg
  451. $ cd ~/pkg
  452. </pre>
  453. </li>
  454. <li><p class="first">Getting the <tt class="docutils literal">PKGBUILD</tt> from Arch AUR:</p>
  455. <pre class="literal-block">
  456. $ git clone https://aur.archlinux.org/searx-qt.git
  457. $ cd searx-qt
  458. </pre>
  459. </li>
  460. <li><p class="first">Build and install Searx-Qt package:</p>
  461. <pre class="literal-block">
  462. $ makepkg -si
  463. </pre>
  464. </li>
  465. </ol>
  466. </div>
  467. </div>
  468. </div>
  469. <div class="section" id="usage-1">
  470. <span id="usage"></span><h1><a class="reference internal" href="#usage">Usage</a></h1>
  471. <div class="section" id="profiles">
  472. <span id="usage-profiles"></span><h2><a class="reference internal" href="#usage-profiles">Profiles</a></h2>
  473. <img alt="Profiles window" class="align-right" src="images/profiles_window.png" />
  474. <p>Profiles are useful when you want to have different settings and/or data without
  475. to having to set it manually every-time. For example you can create a profile
  476. named <cite>Tor</cite> which has different proxy and stats2 settings then you normal
  477. profile.</p>
  478. <dl class="docutils">
  479. <dt>There are two types of profiles:</dt>
  480. <dd><ul class="first last simple">
  481. <li><cite>Stats2</cite> profile</li>
  482. <li><cite>User</cite> profile</li>
  483. </ul>
  484. </dd>
  485. </dl>
  486. <p>The profile type names maybe changed to something better, suggestions are
  487. welcome.</p>
  488. <p>Create a <cite>Stats2</cite> profile if you wish to get/update a list of Searx-instances
  489. from a <cite>Searx-Stats2</cite> instance. For example the default <cite>https://searx.space</cite>.</p>
  490. <p>Create a <cite>User</cite> profile if you wish to add/remove/update your own list with
  491. Searx-instances.</p>
  492. <blockquote>
  493. <div class="line-block">
  494. <div class="line"><strong>NOTE</strong>: Profile types cannot be changed after the creation of the profile,</div>
  495. <div class="line-block">
  496. <div class="line">but you can add multiple profiles of both types.</div>
  497. </div>
  498. </div>
  499. </blockquote>
  500. <div class="section" id="creating-new-profile">
  501. <h3>Creating new profile</h3>
  502. <p>On first usage of <cite>Searx-Qt</cite> you will need to create a new profile. The <cite>Add</cite>
  503. button (of the &quot;Profile select&quot; window) will open a dialog to do so.</p>
  504. <p>There are profile settings presets (Web, Tor, i2p) which you can choose from.
  505. The Tor preset sets the proxy to <tt class="docutils literal">127.0.0.1:9050</tt> and
  506. changes the Searx-Stats2 instance url to the onion address. The i2p preset
  507. sets the proxy to <tt class="docutils literal">127.0.0.1:4444</tt>, it also adds some known
  508. i2p instances of Searx.</p>
  509. <blockquote>
  510. <img alt="Create new profile dialog" src="images/profiles_new.png" />
  511. </blockquote>
  512. </div>
  513. <div class="section" id="deleting-a-profile">
  514. <h3>Deleting a profile</h3>
  515. <p>I hope that it is self explanatory that the <cite>Delete</cite> button of the
  516. &quot;Profile select&quot; window deletes the currently selected profile, it will ask
  517. for confirmation before doing so.</p>
  518. <p>It is not possible to delete a active profile (at-least it shouldn't ;-)).</p>
  519. </div>
  520. </div>
  521. <div class="section" id="settings">
  522. <span id="usage-settings"></span><h2><a class="reference internal" href="#usage-settings">Settings</a></h2>
  523. <div class="section" id="general">
  524. <h3>General</h3>
  525. <img alt="images/settings_general.png" class="align-right" src="images/settings_general.png" />
  526. <div class="section" id="theme">
  527. <h4>Theme</h4>
  528. <p>A <tt class="docutils literal">Theme</tt> is a Searx-Qt specific <tt class="docutils literal">stylesheet</tt> and the <tt class="docutils literal">Base style</tt> is a
  529. Qt theme/style.</p>
  530. <p>The Searx-Qt specific <tt class="docutils literal">Theme</tt> does override the <tt class="docutils literal">Base style</tt>.</p>
  531. </div>
  532. <div class="section" id="cli-output-level">
  533. <h4>CLI output level</h4>
  534. <p>The amount of CLI spam can be set here.</p>
  535. <blockquote>
  536. <ul class="simple">
  537. <li><tt class="docutils literal">Info</tt> does print to <tt class="docutils literal">stdout</tt>.</li>
  538. <li><tt class="docutils literal">Warning</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  539. <li><tt class="docutils literal">Debug</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  540. <li><tt class="docutils literal">Errror</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  541. </ul>
  542. </blockquote>
  543. </div>
  544. </div>
  545. <div class="section" id="connection">
  546. <h3>Connection</h3>
  547. <img alt="images/settings_connection.png" class="align-right" src="images/settings_connection.png" />
  548. <div class="section" id="verify-ssl">
  549. <h4>Verify (SSL)</h4>
  550. <p>Request will fail on a invalid SSL/TLS certificate.</p>
  551. <p>Leave checked if unsure.</p>
  552. <p>See
  553. <a class="reference external" href="https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification">https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification</a>
  554. for a more technical description.</p>
  555. </div>
  556. <div class="section" id="timeout">
  557. <h4>Timeout</h4>
  558. <p>Timeout in seconds for a single request.</p>
  559. <p>Leave it at the default value of 10 seconds if unsure.</p>
  560. <p>See <a class="reference external" href="https://requests.readthedocs.io/en/master/user/advanced/#timeouts">https://requests.readthedocs.io/en/master/user/advanced/#timeouts</a> for a
  561. more technical description.</p>
  562. </div>
  563. <div class="section" id="proxy">
  564. <h4>Proxy</h4>
  565. <p>Here you can set a proxy that will be used for every connection Searx-Qt
  566. makes.</p>
  567. <p>The set proxy will apply to both <tt class="docutils literal">HTTP</tt> and <tt class="docutils literal">HTTPS</tt> requests.</p>
  568. <p>If you use a <tt class="docutils literal">socks4</tt> or <tt class="docutils literal">socks5</tt> proxy you probably want to make sure the
  569. 'Proxy DNS' checkbox is checked so DNS requests will also go through the
  570. proxy. DNS proxy is not available for a http proxy type.</p>
  571. </div>
  572. <div class="section" id="user-agents">
  573. <h4>User-agents</h4>
  574. <p>What user-agent string should Searx-Qt send?</p>
  575. <p>After pressing the <cite>Edit</cite> button it will change to a <cite>Save</cite> button, you will
  576. be able to edit the user-agent ?string(s) Searx-Qt will send. Some notes:</p>
  577. <ul class="simple">
  578. <li>One user-agent string per line.</li>
  579. <li>Set total blank to not send any user-agent string.</li>
  580. </ul>
  581. <p>When the <cite>Random</cite> checkbox is checked and there are multiple user-agent
  582. strings set then Searx-Qt will pick a random user-agent string from the list
  583. for every request.</p>
  584. </div>
  585. </div>
  586. <div class="section" id="searx-stats2">
  587. <h3>Searx-Stats2</h3>
  588. <p>Here you can change the URL of the Searx-Stats2 instance you like to use
  589. for fetching the instances data.</p>
  590. <blockquote>
  591. <div class="line-block">
  592. <div class="line"><strong>NOTE</strong>: This is only available for a <cite>Stats2</cite> profile type.</div>
  593. </div>
  594. </blockquote>
  595. </div>
  596. <div class="section" id="guard">
  597. <span id="usage-instances"></span><h3>Guard</h3>
  598. <p>Guard can put instances on a timeout or the blacklist when they are failing.</p>
  599. <p>When the Guard rules are set properly, searches will be quicker over time
  600. since failing instances are not used anymore. This reduces the chance of
  601. requesting a search query to a instance that probably will fail again. Also
  602. some instances block our request for whatever reason they have, and there is
  603. no standard response so they all may (and many will) respond diffrently (Thus
  604. we can not properly detect when we may use the API and when not).</p>
  605. <blockquote>
  606. <ul class="simple">
  607. <li>It should be obvious that when <tt class="docutils literal">Enable guard</tt> is checked that Guard is enabled, when not checked Guard is disabled.</li>
  608. <li>When Guard is enabled it is advised to also enable the <tt class="docutils literal">Store log</tt> option so that old failures can be evaluated against new failures after Searx-Qt has been restarted.</li>
  609. <li>Below the <tt class="docutils literal">Store log</tt> option is a spinbox that defines for how long log entries will be stored (in days).</li>
  610. <li>A rule defines what a fail is and what should happen with the failing instance.</li>
  611. </ul>
  612. </blockquote>
  613. <img alt="images/settings_guard.png" class="align-right" src="images/settings_guard.png" />
  614. <div class="section" id="rules">
  615. <h4>Rules</h4>
  616. <p>A rule has the following variables:</p>
  617. <blockquote>
  618. <ul class="simple">
  619. <li><tt class="docutils literal">Error Type</tt>, the type of error.</li>
  620. <li><tt class="docutils literal">Amount</tt> of fails.</li>
  621. <li><tt class="docutils literal">Timeframe</tt> in which the <tt class="docutils literal">Amount</tt> of fails have to occur.</li>
  622. <li><tt class="docutils literal">Status</tt>, the HTTP response code. (Only used for the <tt class="docutils literal">WrongStatus</tt> <tt class="docutils literal">Error type</tt>).</li>
  623. <li><tt class="docutils literal">Destination</tt>, what should happen to the instance? Should Guard put it on
  624. the blacklist or on a timeout?</li>
  625. <li><tt class="docutils literal">Duration</tt> in minutes of the timeout. (Only used when <tt class="docutils literal">Destionation</tt> is set to <tt class="docutils literal">Timeout</tt>). When <tt class="docutils literal">Timeout</tt> is used as <tt class="docutils literal">Destination</tt> and this is set to <tt class="docutils literal">0</tt> minutes the instance will be on timeout until Searx-Qt
  626. has been restarted.</li>
  627. </ul>
  628. </blockquote>
  629. <p>When <tt class="docutils literal">Error type</tt>, <tt class="docutils literal">Amount</tt>, <tt class="docutils literal">Timeframe</tt> and <tt class="docutils literal">Status</tt> are met the rule
  630. will be triggered and the instance will be put on the <tt class="docutils literal">Destination</tt> for
  631. <tt class="docutils literal">Duration</tt> amount of time in minutes.</p>
  632. </div>
  633. <div class="section" id="log">
  634. <h4>Log</h4>
  635. <p>Here you can see failed search requests. Failed search requests will only
  636. be logged when Guard is enabled.</p>
  637. <p>It logs as little as possible. The following is logged:</p>
  638. <blockquote>
  639. <ul class="simple">
  640. <li>Date and time.</li>
  641. <li>Instance url.</li>
  642. <li>Error Type.</li>
  643. <li>HTTP status code.</li>
  644. <li>HTTP content/Error message (for debugging, may contain error message)</li>
  645. </ul>
  646. </blockquote>
  647. </div>
  648. </div>
  649. </div>
  650. <div class="section" id="instances">
  651. <h2><a class="reference internal" href="#usage-instances">Instances</a></h2>
  652. <img alt="images/instances.png" class="align-right" src="images/instances.png" />
  653. <p>A Searx instance is a server running the Searx project. Since we want to
  654. preform searches to Searx instance(s) we need addresses of those
  655. instance(s).</p>
  656. <p>The interface to manage instances is on the right.</p>
  657. <div class="section" id="with-stats2-profile-type">
  658. <h3>With <cite>Stats2</cite> profile type</h3>
  659. <p>When your profile is a <cite>Stats2</cite> type, the Searx-instances will be fetched
  660. from <tt class="docutils literal"><span class="pre">https://searx.space/data/instances.json</span></tt> (or any other set in the
  661. settings by your preference). The <tt class="docutils literal">instances.json</tt> from <tt class="docutils literal">search.space</tt>
  662. also contains a lot of other data about the instances it lists (which we can
  663. use to filter instances based on our preferences).</p>
  664. <p>When Searx-Qt is used for the first time you will need to update the
  665. instances table. There is a 'Update' button between the Filter and the
  666. Table that can be used for this. Searx-Qt will not update this automatically!</p>
  667. <p>It maybe useful to update the instances data so now and then since public
  668. instances appear, disappear and their stats change over time.</p>
  669. </div>
  670. <div class="section" id="with-user-profile-type">
  671. <h3>With <cite>User</cite> profile type</h3>
  672. <p>If your profile is a <cite>User</cite> type you will have to add addresses of instances
  673. manually.</p>
  674. <p>This can be done by pressing the <cite>Add instance</cite> button right above
  675. the instances table, a dialog will pop-up asking for the address to add
  676. (without scheme).</p>
  677. <p>The scheme (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) can be selected from the combobox.</p>
  678. <p>There is also a &quot;Update data on add&quot; checkbox, when this is checked
  679. and <cite>Add</cite> is pressed it will automatically download data from
  680. <cite>http(s)://your-address/config</cite>. Downloading/updating this data may also be
  681. done later by right clicking on a (or multiple) Searx-instances in the table
  682. and pressing <cite>Update selected</cite> from the context-menu that has popped-up.</p>
  683. </div>
  684. <div class="section" id="instances-table">
  685. <span id="usage-instances-table"></span><h3>Instances table</h3>
  686. <p>The instances table can be used to browse instances with their data that
  687. remain after all filters. The table is also used to set the current
  688. instance by left-clicking on one.</p>
  689. <p>The currently used instance should also be visible bottom right in the
  690. application it's status-bar.</p>
  691. <p>Right-clicking in the table opens a context-menu from where you can do
  692. the following:</p>
  693. <ul class="simple">
  694. <li>Whitelist/blacklist selected instance(s).</li>
  695. <li>Temporary blacklist.</li>
  696. <li>Copy any column(s) of the selected instance(s) to the clipboard.</li>
  697. <li>Copy JSON data of the selected instance(s) to the clipboard.</li>
  698. <li>Select All instances (CTRL+A should do the same).</li>
  699. <li>Hide or show columns.</li>
  700. </ul>
  701. <p>If your profile is a <cite>User</cite> profile the context-menu will have the
  702. following extra actions:</p>
  703. <ul class="simple">
  704. <li>Remove selected instance(s).</li>
  705. <li>Update selected instance(s).</li>
  706. </ul>
  707. </div>
  708. <div class="section" id="filter-instances">
  709. <h3>Filter instances</h3>
  710. <p>When a filter is enabled and the instance it's value that is being
  711. matched is unknown then it is excluded by default!</p>
  712. <div class="section" id="network">
  713. <h4>Network</h4>
  714. <p>Filter instances on network type. Only instances that match one of the
  715. checked network types remain.</p>
  716. </div>
  717. <div class="section" id="require-asn-privacy">
  718. <h4>Require ASN privacy</h4>
  719. <p>Excludes instances that run their server at a known malicious network.
  720. Like for example CloudFlare, Google, Akamai etc..</p>
  721. <p>This does not give any guarantee, it only filters <strong>known</strong> privacy
  722. violators!</p>
  723. <p>For a full list of known malicious networks (technical):
  724. <a class="reference external" href="https://github.com/dalf/searx-stats2/blob/master/searxstats/data/asn.py">https://github.com/dalf/searx-stats2/blob/master/searxstats/data/asn.py</a></p>
  725. </div>
  726. <div class="section" id="require-ipv6">
  727. <h4>Require IPv6</h4>
  728. <p>Exclude instances that don't have at least one IPv6 address.</p>
  729. </div>
  730. <div class="section" id="version">
  731. <h4>Version</h4>
  732. <p>This has multiple options to filter on Searx/SearXNG versions strings. Both
  733. semantic versions and date versions are supported.</p>
  734. <blockquote>
  735. <ul class="simple">
  736. <li>[<tt class="docutils literal">Minimum</tt>]
  737. Include only instances with versions of the set minimum version or higher.</li>
  738. <li>[<tt class="docutils literal">Invalid</tt>]
  739. Include instances with a invalid version string.</li>
  740. <li>[<tt class="docutils literal">Development</tt>]
  741. Include development versions (git versions).</li>
  742. <li><ul class="first">
  743. <li>[<tt class="docutils literal">Dirty</tt>]
  744. Include SearXNG development versions with uncommited changes.</li>
  745. </ul>
  746. </li>
  747. <li><ul class="first">
  748. <li>[<tt class="docutils literal">Extra</tt>]
  749. Include versions with the 'extra' addition, I don't know what this is; so
  750. TODO.</li>
  751. </ul>
  752. </li>
  753. <li><ul class="first">
  754. <li>[<tt class="docutils literal">Unknown</tt>]
  755. Include Searx development versions with unknown changes.</li>
  756. </ul>
  757. </li>
  758. </ul>
  759. </blockquote>
  760. </div>
  761. <div class="section" id="blacklist">
  762. <h4>Blacklist</h4>
  763. <p>Here are the URLs of the instances that have been blacklisted, either manually
  764. or automatically by Guard (when enabled).</p>
  765. <p>There is a button right to each blacklist item to remove it from the
  766. blacklist.</p>
  767. <p>Hovering the remove button or the url of a blacklist item will show a tooltip
  768. with some more info.</p>
  769. <p>You can manually blacklist a instance by right clicking on a instance in
  770. the instances table and click 'Add to blacklist'; multiple instances can
  771. be blacklisted at once.</p>
  772. <p>Blacklisted instances will be excluded from the table by default.</p>
  773. </div>
  774. <div class="section" id="whitelist">
  775. <h4>Whitelist</h4>
  776. <p>Here are the URLs of the instances that have been manually whitelisted.
  777. There is a button right to each whitelist item to remove it from the
  778. whitelist.</p>
  779. <p>You can manually whitelist a instance by right clicking on a instance in
  780. the instances table and click 'Add to whitelist'; multiple instances can
  781. be whitelisted at once.</p>
  782. <p>Whitelisted instances will be in the table by default except when they are on
  783. the timeout list.</p>
  784. </div>
  785. <div class="section" id="timeout-1">
  786. <h4>Timeout</h4>
  787. <p>This is a temporary blacklist. Instances manually put on a timeout will stay
  788. here until Searx-Qt is restarted. When Guard is enabled it also may put
  789. instances here depending on the set rules, those may persist after Searx-Qt is
  790. restarted depending on the rule(s).</p>
  791. <p>Hovering the remove button or the url of a timeout item will show a tooltip
  792. with some more info.</p>
  793. </div>
  794. </div>
  795. </div>
  796. <div class="section" id="search">
  797. <span id="usage-search"></span><h2><a class="reference internal" href="#usage-search">Search</a></h2>
  798. <div class="section" id="search-bar">
  799. <span id="usage-search-bar"></span><h3>Search bar</h3>
  800. <img alt="images/search_bar.png" src="images/search_bar.png" />
  801. <div class="section" id="fallback">
  802. <span id="usage-search-bar-fallback"></span><h4>Fallback</h4>
  803. <p>When checked it will pick a random instance from the instances table if a
  804. search request fails one way or another and re-try the same request with
  805. the freshly picked instance. There is a maximum amount of 10 tries (10
  806. different instances to try the same request on).</p>
  807. <p>What is fail?</p>
  808. <ul class="simple">
  809. <li>Connection errors including timeout.</li>
  810. <li>Wrong status code (not 200).</li>
  811. <li>No (usefull) or malformed results returned.</li>
  812. </ul>
  813. </div>
  814. <div class="section" id="random-every">
  815. <span id="usage-search-random-every"></span><h4>Random every</h4>
  816. <p>When checked it will automatically pick a random instance on a search request,
  817. it will also hide the 'Random search button' because it makes it obsolete.</p>
  818. <p>When not checked it will do search requests on the same instance unless the
  819. request fails somehow and 'Fallback' is checked. Exception is when the
  820. 'Random search button' is used for the search request.</p>
  821. </div>
  822. <div class="section" id="random-search-button">
  823. <span id="usage-search-bar-random-search-button"></span><h4>Random search button</h4>
  824. <p>When pressed it will pick a random instance from the list and preform the
  825. search request.</p>
  826. </div>
  827. <div class="section" id="reload-button">
  828. <span id="usage-search-bar-reload-button"></span><h4>Reload button</h4>
  829. <p>When pressed it basically preforms a search request without 'Fallback'
  830. whenever it is enabled or not, it also doesn't reset the page number. So
  831. it can act as a reload button thus it's name, but it does more.</p>
  832. <p>Note: When a search argument like the search query, instance URL,
  833. categories/engines etc. has changed by user interaction it will do the
  834. request with those changes, that isn't a real reload of the previous
  835. request.</p>
  836. <p>Dev-note: Probably this behavior should change or the name/icon should
  837. change to something more fitting.</p>
  838. </div>
  839. <div class="section" id="search-button">
  840. <span id="usage-search-bar-search-button"></span><h4>Search button</h4>
  841. <p>Preform a search request on the currently selected instance.</p>
  842. <p>Page number is reset, 'Fallback' and 'Random Every' options are honored.</p>
  843. </div>
  844. <div class="section" id="search-query-input">
  845. <span id="usage-search-bar-search-query-input"></span><h4>Search query input</h4>
  846. <p>The query you like to search for.</p>
  847. <p>See <a class="reference external" href="https://searx.github.io/searx/user/search_syntax.html">https://searx.github.io/searx/user/search_syntax.html</a> for what is
  848. possible.</p>
  849. <p>It will do a search request on <tt class="docutils literal">enter</tt> key pressed, same behavior as
  850. when the 'Search button' has been pressed.</p>
  851. </div>
  852. </div>
  853. <div class="section" id="search-options">
  854. <span id="usage-search-options"></span><h3>Search options</h3>
  855. <img alt="Search options bar" src="images/search_options.png" />
  856. <p><strong>NOTE</strong>: Right clicking in (on the picture above) the dark area opens a
  857. context-menu where you can manage what options you want to be visible or
  858. not as shown in the image below.</p>
  859. <img alt="Search options context menu" class="align-right" src="images/search_options_rmb.png" />
  860. <p><strong>NOTE</strong>: Left-click (mouse) on the <tt class="docutils literal">Categories</tt> or <tt class="docutils literal">Engines</tt> label will
  861. toggle the label collapsed/expanded state, to be able to reduce the height
  862. when multiple options are selected.</p>
  863. <p><strong>NOTE</strong>: Right-click (mouse) on <tt class="docutils literal">Categories</tt> or <tt class="docutils literal">Engines</tt> label will open
  864. a context menu with a option to uncheck all for convenience.</p>
  865. <div class="section" id="categories">
  866. <span id="usage-search-options-categories"></span><h4>Categories</h4>
  867. <img alt="Categories menu" class="align-right" src="images/categories_menu.png" />
  868. <p>A category is basically a collection of engines. When a category gets checked
  869. then all the engines it represents will also be checked which in turn will
  870. filter out all Searx-instances that don't have at least one of the checked
  871. engines enabled.</p>
  872. <p>Multiple categories may be selected.</p>
  873. <p>The default (non-editable) categories will be compiled from categories listed
  874. in engines. Besides default categories there is also a option to create custom
  875. categories.</p>
  876. <img alt="Custom categories window" src="images/custom_categories.png" />
  877. </div>
  878. <div class="section" id="engines">
  879. <span id="usage-search-options-engines"></span><h4>Engines</h4>
  880. <p>Here you can toggle what search engines should be enabled. It will
  881. automatically filter out all instances from the instances table that doesn't
  882. have at least one of the checked engines enabled. The checked engines will
  883. be send with a search request to a Searx instance with the <cite>enabled_engines</cite>
  884. param. You should only get results from engines that are checked.</p>
  885. <p>If no engine is checked it means that it may return results of any engine
  886. in the list.</p>
  887. <p>The list with engines is created with data from the
  888. <a class="reference internal" href="#usage-instances-table">instances table</a>, so only engines are listed that
  889. are available from the instances table.</p>
  890. </div>
  891. <div class="section" id="period">
  892. <span id="usage-search-options-period"></span><h4>Period</h4>
  893. <p>Search period you like results from. Options are <tt class="docutils literal">Last day</tt>,
  894. <tt class="docutils literal">Last week</tt>, <tt class="docutils literal">Last month</tt> or <tt class="docutils literal">Last year</tt>.</p>
  895. </div>
  896. <div class="section" id="language">
  897. <span id="usage-search-options-language"></span><h4>Language</h4>
  898. <p>If you want results in a specific language than you can select one here. The
  899. set language will persist on restart.</p>
  900. <p>Since Searx-Qt 0.3 there is a option to mark languages a favorites. Favorites
  901. will appear on the top of the combobox list so you won't have to scroll.</p>
  902. <p>Adding a language to favorite can be done by hovering the language and
  903. pressing the spacebar on your keyboard. Removing a favorite works the same,
  904. hover the favorite language and press the spacebar on your keyboard.</p>
  905. <blockquote>
  906. <div class="line-block">
  907. <div class="line"><strong>NOTE</strong>: Not all engines have language support and not all engines </div>
  908. <div class="line-block">
  909. <div class="line">honor the requested language. Searx-qt does not (yet?) act on </div>
  910. <div class="line">this.</div>
  911. </div>
  912. </div>
  913. <div class="line-block">
  914. <div class="line"><strong>NOTE</strong>: When <tt class="docutils literal">Default language</tt> is set that means the default language</div>
  915. <div class="line-block">
  916. <div class="line">of the instance.</div>
  917. </div>
  918. </div>
  919. </blockquote>
  920. </div>
  921. </div>
  922. <div class="section" id="search-results">
  923. <h3>Search results</h3>
  924. <div class="section" id="find-text-in-results">
  925. <h4>Find text in results</h4>
  926. <p>The find widget to search text inside the results can be opened/focused by the
  927. keyboard shortcut <tt class="docutils literal">Ctrl + F</tt>.</p>
  928. <p>Shortcuts that may be used while the find text input is activated:</p>
  929. <blockquote>
  930. <ul class="simple">
  931. <li><tt class="docutils literal">Return</tt> to find the next match.</li>
  932. <li><tt class="docutils literal">Shift + Return</tt> to find the previous match.</li>
  933. <li><tt class="docutils literal">Escape</tt> to close.</li>
  934. </ul>
  935. </blockquote>
  936. </div>
  937. </div>
  938. </div>
  939. </div>
  940. <div class="section" id="development-1">
  941. <span id="development"></span><h1><a class="reference internal" href="#development">Development</a></h1>
  942. <p><strong>NOTE</strong>: Make sure you are in the Searx-Qt source root (where utils/,
  943. locales/, searxqt/ etc.. are).</p>
  944. <p><strong>NOTE</strong>: To run Searx-Qt without need to install:</p>
  945. <pre class="literal-block">
  946. # Copy the executable from ./bin to cwd (searx-qt source root)
  947. cp bin/searx-qt ./
  948. # Start
  949. ./searx-qt
  950. </pre>
  951. <div class="section" id="themes">
  952. <span id="development-themes"></span><h2><a class="reference internal" href="#development-themes">Themes</a></h2>
  953. <div class="section" id="create-new-theme">
  954. <h3>Create new theme</h3>
  955. <p>A theme consists of icons, application css and search result/fail css.</p>
  956. <p>Simple example to create a new theme from the default theme:</p>
  957. <p><strong>NOTE</strong>: Replace <tt class="docutils literal">your_theme</tt> with the name of your new theme.</p>
  958. <p><strong>NOTE</strong>: For this example you should know basic CSS.</p>
  959. <ol class="arabic">
  960. <li><p class="first">Setup structure for new theme.</p>
  961. <blockquote>
  962. <pre class="code literal-block">
  963. cp -r ./themes/default/ ./themes/your_theme/
  964. </pre>
  965. </blockquote>
  966. </li>
  967. <li><p class="first">Edit the application style <tt class="docutils literal">./themes/your_theme/style.css</tt>.</p>
  968. </li>
  969. <li><p class="first">Edit the css used for failed search result message <tt class="docutils literal">./themes/your_theme/html_fail.css</tt>.</p>
  970. </li>
  971. <li><p class="first">Edit the css used for search results <tt class="docutils literal">./themes/your_theme/html_results.css</tt></p>
  972. </li>
  973. <li><p class="first">Edit the icons (don't change their size) <tt class="docutils literal"><span class="pre">./themes/your_theme/icons/*.png</span></tt></p>
  974. </li>
  975. <li><p class="first">Open <tt class="docutils literal">./themes/your_theme/manifest.json</tt> and change the <tt class="docutils literal">name</tt> variable to the pretty name of your new theme.</p>
  976. </li>
  977. <li><p class="first">See if your theme is listed, when not there is a error:</p>
  978. <pre class="literal-block">
  979. python ./utils/themes_tool.py list
  980. </pre>
  981. </li>
  982. <li><p class="first">Compile the theme:</p>
  983. <pre class="literal-block">
  984. python ./utils/themes_tool.py make your_theme
  985. </pre>
  986. </li>
  987. <li><p class="first">Open Searx-Qt, go to settings, change to your new theme (it should be listed, else there is an error) and test it:</p>
  988. <pre class="literal-block">
  989. ./searx-qt
  990. </pre>
  991. </li>
  992. <li><p class="first">Done? :-)</p>
  993. </li>
  994. </ol>
  995. </div>
  996. </div>
  997. <div class="section" id="translations-1">
  998. <span id="development-translations"></span><h2><a class="reference internal" href="#development-translations">Translations</a></h2>
  999. <p>Searx-Qt will try to find a translation for your system locale and use that
  1000. when found.</p>
  1001. <p>To test translations the system locale should be installed for that language,
  1002. it doesn't have to be set for testing since we can easly override the <tt class="docutils literal">LANG</tt>
  1003. environment variable before executing Searx-Qt.</p>
  1004. <p><strong>NOTE</strong>: The examples below are for a Dutch language translation, you
  1005. should replace <tt class="docutils literal">nl_NL</tt> with the i18n locale ID of the language you whish to
  1006. translate.</p>
  1007. <div class="section" id="create-new-translation">
  1008. <h3>Create new translation</h3>
  1009. <ol class="arabic">
  1010. <li><p class="first">Setup structure for new language:</p>
  1011. <pre class="literal-block">
  1012. # Update the searx-qt.pot template file.
  1013. ./utils/locale_tool.sh -c
  1014. # Create directory structure.
  1015. mkdir -p ./locales/nl_NL/LC_MESSAGES/
  1016. # Copy the template file to our new directory.
  1017. cp ./locales/searx-qt.pot ./locales/nl_NL/LC_MESSAGES/searx-qt.po
  1018. # Check if our new language is found. It should be listed.
  1019. ./utils/locale_tool.sh --list
  1020. </pre>
  1021. </li>
  1022. <li><p class="first">Start working on the translation.</p>
  1023. <p>You can edit the <tt class="docutils literal"><span class="pre">./locales/nl_NL/LC_MESSAGES/searx-qt.po</span></tt> file with a
  1024. text editor or a special editor for translations (that can handle <tt class="docutils literal">.po</tt>
  1025. files like for example Poedit).</p>
  1026. </li>
  1027. <li><p class="first">Compile the translation:</p>
  1028. <pre class="literal-block">
  1029. ./utils/locale_tool.sh -m nl_NL
  1030. </pre>
  1031. </li>
  1032. <li><p class="first">Test the translation:</p>
  1033. <pre class="literal-block">
  1034. # Note: overriding XDG_DATA_HOME only for debugging translations! Themes
  1035. # will not work.
  1036. XDG_DATA_HOME=&quot;$(pwd -P)/&quot; LANG=nl_NL.UTF-8 ./searx-qt
  1037. </pre>
  1038. </li>
  1039. </ol>
  1040. </div>
  1041. <div class="section" id="update-existing-translation">
  1042. <h3>Update existing translation</h3>
  1043. <ol class="arabic">
  1044. <li><p class="first">Update files:</p>
  1045. <pre class="literal-block">
  1046. # Update the .pot template file.
  1047. ./utils/locale_tool.sh -c
  1048. # Update the translation it's .po file
  1049. ./utils/locale_tool.sh -u nl_NL
  1050. </pre>
  1051. </li>
  1052. <li><p class="first">Edit the translation:</p>
  1053. <p>You can edit the <tt class="docutils literal"><span class="pre">./locales/nl_NL/LC_MESSAGES/searx-qt.po</span></tt> file with a
  1054. text editor or a special editor for translations (that can handle <tt class="docutils literal">.po</tt>
  1055. files like for example Poedit).</p>
  1056. </li>
  1057. <li><p class="first">Compile the translation:</p>
  1058. <pre class="literal-block">
  1059. ./utils/locale_tool.sh -m nl_NL
  1060. </pre>
  1061. </li>
  1062. <li><p class="first">Test the translation:</p>
  1063. <pre class="literal-block">
  1064. # Note: overriding XDG_DATA_HOME only for debugging translations! Themes
  1065. # will not work.
  1066. XDG_DATA_HOME=&quot;$(pwd -P)/&quot; LANG=nl_NL.UTF-8 ./searx-qt
  1067. </pre>
  1068. </li>
  1069. </ol>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. </body>
  1075. </html>