The main args completion no longer uses a bash while loop for splitting
up the arguments making it much faster.
I have also removed the use of FZF for looking up modes. This has been
moved into the overidepartialcompletion file in includes.
The functions are wrappers around http and https and set the
x-xsrf-token header based on the value of the Xsrf-token cookie in the
session file.
Currently, the cookie name and header name are hard coded. I may look to
specify those in an argument at some point although for now it's
probably fine.
This is useful if I want to edit a script but I'm not in my scripts
directory. It will look for a file with the name I have typed and
replace it.
for example:
vim yt<^n>
will be replaced with
vim /home/jonathan/.bin/yt
The script will first try `which <filename>`, searching the path. If
that fails, it will do `locate "*/filename"` which will search for the
file elsewhere
The alt-m key binding is used to create a directory for the current
"word". This change makes it work if it has something like ~ in the
name.
${~var} is used to turn on GLOB_SUBST. The string resulting from the
expansion will be interpreted as a pattern anywhere that is possible,
such as filenames expanding `~`
man zshexpn
The yt script now accepts a --url option which will take a url as an
option like
yt --url youtube.com/watch?v=blar
or
echo youtube.com/watch?v=blar | yt --url
It will also use rofi rather than fzf if not being run from a terminal
or the --rofi flag is given
I have updated the files that used to use open-youtube to reflect this
RIPGREP
ripgrep is now my grep command and I can use [c and ]c for moving
between quickfix entries
INCCOMMAND
Setting this makes vim show the results of substitute commands as they
are types