Commit graph

13 commits

Author SHA1 Message Date
Jonathan Hodgson
6fa3f737e2 Work on openapi completion
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.
2022-10-04 11:42:47 +01:00
Jonathan Hodgson
52eb406676 FZF: adds git bindings and toggle preview
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.
2021-11-16 11:45:45 +00:00
Jonathan Hodgson
3187c98e35 Adds check for fzf 2021-02-03 23:16:35 +00:00
Jonathan Hodgson
8c2363f25e makes fzf go to top on change 2020-07-29 17:19:50 +01:00
Jonathan Hodgson
111d1ad734 Makes ctrl+t and alt+c shortcuts exclude node_modules 2020-05-25 11:57:27 +01:00
Jonathan Hodgson
f2d62ffae4 Changes behaviour of ctrl t in zsh
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.
2020-05-22 17:33:45 +01:00
Jonathan Hodgson
3b28d5c2b9 Split completion overide scripts up and into seperate files 2020-05-09 20:44:18 +01:00
Jonathan Hodgson
7909828f80 Mostly improving fzf tab on-word complete 2020-05-08 20:42:26 +01:00
Jonathan Hodgson
145eb0373b Makes fzf work better if key-bindings and completion in Debian location 2020-03-31 09:13:24 +01:00
Jonathan Hodgson
217cfcd0f2 Fixes git tag and makes fzf default to ansi colours 2020-03-29 19:15:09 +01:00
Jonathan Hodgson
1917307cb2 Adds msfvenom completion with payloads
Also some small fzf and prompt changes
2020-03-23 15:28:59 +00:00
Jonathan Hodgson
715b2b7d3e Lots of zsh changes 2020-03-11 11:30:54 +00:00
Jonathan Hodgson
bee2fa64e1 Moves includes into includes folder 2020-02-19 12:07:52 +00:00
Renamed from shells/zsh/oh-my-zsh-custom/fzf.zsh (Browse further)