All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.2.0 - 2019-02-14
- Completion for command options. (Only template keywords are supported before)
- Customize templates location with environment variable
GI_TEMPLATE
with fallback.git-ignore
directory under this plugin's root folder$XDG_DATA_HOME/git-ignore
$HOME/.local/share/git-ignore
- Separate
compdef
into filefunction/_git-ignore
to speed thing up. - Improve globbing for template fetching.
- Move default template location to compliant with XDG base directory
- Correct folder name
function
asfunctions
- Quit
fzf
menu directly if no item is selected, skip the later output prompt.
1.1.0 - 2019-01-23
- New CLI with many useful options.
git
sub-commandgit ignore
.
- Separate the core function as script
git-ignore
.-l
, list all template names.-s
, search with keyword for available templates.-u
, init/update templates repo.-c
, clean local templates repo.-h
, help menu.-v
, version display.
- Command name
gitignore
is changed asgit-ignore
.
- Unnecessary external command
basename
. - Pre-defined settings for
bat
.
1.0.0 - 2019-01-23
- Simple completion for templates implemented using
compadd
. - Preview in README.
- Support for general plugin mangers with
*.plugin.zsh
filename pattern.
- Get back the output menu after selection made in
fzf
. Cancel the removal made by forgit.
- Scroll the preview section in
fzf
with mouse.
- Unnecessary
fzf
option--bind='ctrl-s:toggle-sort'
.- The input for it is already sorted.
- Optimize the script by using glob and variable expansion, removing:
- Unnecessary external command
find
. - Unnecessary external command
sed
. - Unnecessary external command
awk
. - Unnecessary pipes
|
.
- Unnecessary external command