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