|
|
@@ -20,7 +20,70 @@ sudo ln -s hister_0.11.0_darwin_arm64 hister
|
|
|
chmod +x hister_0.11.0_darwin_arm64
|
|
|
```
|
|
|
|
|
|
-5. Exécution du serveur : `hister listen`
|
|
|
|
|
|
+5. Créer un fichier de configuration dans `$HOME/.config/hister/config.yml`
|
|
|
+6. Exécuter `hister create-config` pour générer un nouveau contenu (ou voir contenu ci-dessous)
|
|
|
+7. Exécution du serveur : `hister listen`
|
|
|
|
|
|
|
|
|
+## Fichier de configuration
|
|
|
+
|
|
|
+```yml
|
|
|
+app:
|
|
|
+ directory: '~/.config/hister'
|
|
|
+ search_url: 'https://google.com/search?q={query}'
|
|
|
+ log_level: 'info'
|
|
|
+ open_results_on_new_tab: false
|
|
|
+
|
|
|
+server:
|
|
|
+ address: '127.0.0.1:4433'
|
|
|
+ base_url: 'http://127.0.0.1:4433'
|
|
|
+ database: 'db.sqlite3'
|
|
|
+
|
|
|
+#indexer:
|
|
|
+# detect_languages: true
|
|
|
+# directories:
|
|
|
+# - path: '~/notes'
|
|
|
+# filetypes: ['txt', 'md']
|
|
|
+
|
|
|
+crawler:
|
|
|
+ backend: 'http'
|
|
|
+ timeout: 5
|
|
|
+ delay: 1
|
|
|
+ user_agent: 'Hister'
|
|
|
+
|
|
|
+hotkeys:
|
|
|
+ web:
|
|
|
+ '/': 'focus_search_input'
|
|
|
+ 'enter': 'open_result'
|
|
|
+ 'alt+enter': 'open_result_in_new_tab'
|
|
|
+ 'alt+j': 'select_next_result'
|
|
|
+ 'alt+k': 'select_previous_result'
|
|
|
+ 'alt+o': 'open_query_in_search_engine'
|
|
|
+ 'alt+v': 'view_result_popup'
|
|
|
+ 'tab': 'autocomplete'
|
|
|
+ '?': 'show_hotkeys'
|
|
|
+
|
|
|
+sensitive_content_patterns:
|
|
|
+ aws_access_key: 'AKIA[0-9A-Z]{16}'
|
|
|
+ github_token: '(ghp|gho|ghu|ghs|ghr)_[a-zA-Z0-9]{36}'
|
|
|
+ banque: '.*(cmb|creditmutuel).*'
|
|
|
+ mutuelle: '.*\.*malakoffhumanis\..*'
|
|
|
+ divers1: 'ygg'
|
|
|
+ divers2: 'c411'
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+## Importation
|
|
|
+
|
|
|
+```bash
|
|
|
+hister import firefox ~/chemin/vers/Firefox/Profiles/identifiant-profil/places.sqlite
|
|
|
+```
|
|
|
+
|
|
|
+## Recherche
|
|
|
+
|
|
|
+Aller à la page de recherche locale: [http://127.0.0.1:4433](http://127.0.0.1:4433)
|
|
|
+
|
|
|
+Faire la recherche
|
|
|
+
|