From 7491f30c14057e5cde8ea7614275a4c78ac180d4 Mon Sep 17 00:00:00 2001 From: DevAtDawn <86164137+DevAtDawn@users.noreply.github.com> Date: Mon, 10 Oct 2022 18:55:37 +0000 Subject: [PATCH] add fish plugin --- scripts/fish_plugin.fish | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/fish_plugin.fish diff --git a/scripts/fish_plugin.fish b/scripts/fish_plugin.fish new file mode 100644 index 0000000..065f52e --- /dev/null +++ b/scripts/fish_plugin.fish @@ -0,0 +1,8 @@ +function create_completion + set text (commandline -b) + set completion (bash -c "echo -n '$text' | '$CODEX_CLI_PATH/src/codex_query.py'") + commandline -a $completion + # note: add move cursor to end +end +bind \cg 'create_completion' +# run the bash setup, then source this file or add it to fish config \ No newline at end of file