Currently still a work in progress.
the bin/.bin/openapi file will be a bash script for interfacing with an
openapi file. Currently it does things like listing requests, servers,
and viewing a request in json format.
The function added to fzf.zsh adds a zsh widget so that I can press a
keybinding (in my case ^o) to complete the command. It uses the above
script and fzf to make the selection. Currently supports http / https /
curl
The widget looks for an environment variable called OPENAPI which should
point to the openapi file. This is set in zshrc if a project is set.
I have added a default binging of ctrl+/ to toggle the preview in fzf
I have added some git key bindings for git stuff. They are all in the
form with ctrl+g ctrl+<something>. Most are what they want, for example
branches are ctrl+g ctrl+b however commits are not. I assume this is
because I can't overwrite what ctrl+c does, even if prefixed. I will
look into this at some point but for now commits are ctrl+g ctrl+h.
Largely stolen the code from here:
https://gist.github.com/junegunn/8b572b8d4b5eddd8b85e5f4d40f17236
although with minor tweaks.
I might change the initial ctrl+g binding as it is awkward on colemak
although we'll see how often I use it.
Now pressing ctrl t will sometimes search directories if more
appropriate.
Pressing alt+c will now to whatever ctrl+t doesn't do if I ever need the
alternative type.