diff --git a/CHANGELOG.md b/CHANGELOG.md index 54e3cbd4..32e7da9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.10.15 + +- Press CTRL+G when searching for an entry, that doesn't exist yet, to auto generate it and save it with GPT3 +- Fixing is_linux() and url entry behaviour on linux + ## 0.10.14 - Added examples for body generation @@ -9,10 +14,10 @@ ## 0.10.13 --Adding support for XFCE --Removing more legacy i3 Code --New is_linux function --Changing default browser logic +- Adding support for XFCE +- Removing more legacy i3 Code +- New is_linux function +- Changing default browser logic ## 0.10.11 diff --git a/pyproject.toml b/pyproject.toml index d6e3d590..e5e1b52d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "python-search" -version = "0.10.14" +version = "0.10.15" description = "Build your knowledge database in python and retrieve it efficiently" authors = ["Jean Carlo Machado "] diff --git a/python_search/apps/browser.py b/python_search/apps/browser.py index a2e6ab59..7d368801 100644 --- a/python_search/apps/browser.py +++ b/python_search/apps/browser.py @@ -49,6 +49,9 @@ def open_shell_cmd( if browser == "firefox": return self._firefox(url_expr) + if is_linux(): + return self._firefox(url_expr) + return self._chrome(url_expr) def _firefox(self, url): diff --git a/python_search/entry_generator.py b/python_search/entry_generator.py index 2cf4e278..a755131d 100644 --- a/python_search/entry_generator.py +++ b/python_search/entry_generator.py @@ -26,4 +26,4 @@ def generate_body(self, entry_description, body_size=500): if __name__ == "__main__": import fire - fire.Fire(EntryGenerator()) \ No newline at end of file + fire.Fire(EntryGenerator()) diff --git a/python_search/environment.py b/python_search/environment.py index 37f01f43..85890b64 100644 --- a/python_search/environment.py +++ b/python_search/environment.py @@ -12,4 +12,4 @@ def is_archlinux(): def is_linux(): - return 0 == os.system("/etc/*release | grep -i linux") + return 0 == os.system("cat /etc/*release | grep -i linux") diff --git a/python_search/search_ui/fzf.py b/python_search/search_ui/fzf.py index 356284e2..0aba2cec 100644 --- a/python_search/search_ui/fzf.py +++ b/python_search/search_ui/fzf.py @@ -54,6 +54,7 @@ def get_cmd(self): --bind "esc:+clear-query" \ --bind "ctrl-k:abort" \ --bind "ctrl-d:abort" \ + --bind "ctrl-g:execute-silent:(prompt_editor --prompt_text {{q}})" \ {self._get_fzf_theme()} ; exit 0 ' """