Commit graph

42 commits

Author SHA1 Message Date
Wenxuan 99b3c66cd6 Update README 2019-01-18 17:41:15 +08:00
Wenxuan 99c973a3a1 Specified a better bat theme for gitignore 2019-01-18 17:19:22 +08:00
Wenxuan 92e64772f7 Feature: Add highlight support for gi. 2019-01-18 16:59:35 +08:00
Wenxuan 126453c777 Feature: Support templates not ending with .gitignore 2019-01-18 16:11:53 +08:00
Wenxuan babb299206 Fix a bug which ignoring the files with link type. 2019-01-18 15:48:56 +08:00
Wenxuan 947954ea84 Update LICENSE. 2019-01-18 15:06:27 +08:00
Wenxuan c14ce9312a Improve git color process logic. #15 2019-01-18 14:55:55 +08:00
Wenxuan 621676feb2 Avoid variables polluting env. 2019-01-18 12:23:24 +08:00
Wenxuan ac6e61d692 Improving logging message. 2019-01-17 20:44:24 +08:00
Wenxuan 268c6282cb Refactor & Share code between zsh & sh. 2019-01-17 19:20:03 +08:00
Laggard Kernel cf4c45547c Fix: use case-insensitive find to get local templates
forgit::ignore::get should work on case-sensitive filesystems now
2019-01-17 17:20:59 +08:00
Laggard Kernel c1a8bd71dc Feature: use gitignore templates from local repo directly
The gitignore templates used here is from dvcs/gitignore, which is
the same one used by gitignore.io.

Environment variable `FORGIT_GI_USE_LOCAL` is used as a switch to
enable this feature, or the original method is used by default.

`forgit::ignore::update` and `forgit::ignore::get` are rewritten
to download the repo, to get templates from the local repo.
local variable `preview` in `forgit:ignore` is also rewritten to
get the preview from there.
2019-01-17 14:56:01 +08:00
laggardkernel b3b5110723 Fix: change replstr into variable in forgit::ignore::get 2019-01-11 16:45:02 +08:00
laggardkernel 51961b763f Fix multi selection in gitignore generation
Choose for loop as the solution cause:
- `xargs -d` is not available in BSD xargs
- `echo $@ |tr ' ' '\n'` is slower that for loop in this case
2019-01-11 16:27:16 +08:00
Wenxuan 737e573032 Preview only show specified files. 2018-11-26 17:52:46 +08:00
Wenxuan 5deb20fef9 Make copy command configurable.(#12) 2018-11-09 11:34:04 +08:00
Wenxuan b52a7c7d0f Don't abort before execute command complete. 2018-11-09 11:26:36 +08:00
Doron Behar 57293ea6e9 Enable not defining aliases at all 2018-10-30 16:21:28 +02:00
Wenxuan 3792406afa Add git stash viewer (#8). 2018-09-18 13:36:56 +08:00
Brett Sun 199bc66972
zsh: fix typo in aliasing forgit_add 2018-08-07 00:05:24 +02:00
Wenxuan 43522b9ace Add ctrl-y keybinding on forgit::log. 2018-07-20 15:39:50 +08:00
Wenxuan 72fc7f4c51 Add git-checkout-file & git-clean functions 2018-06-09 17:08:57 +08:00
Wenxuan 2dc83917ec Support user custom fzf options for forgit (#4) 2018-06-03 00:08:24 +08:00
Wenxuan f4e78acefe Support custom status.color #3 2018-05-01 00:13:51 +08:00
Wenxuan 42deb6ef1e 🐛 Fix wrong alias on ga 2018-04-30 16:52:46 +08:00
Wenxuan 2499abae84 Naming refactor 2018-04-30 11:02:16 +08:00
Wenxuan a05721e8b9 Refactor 2018-04-30 10:48:09 +08:00
Michael Mior 2d737674e2 Allow custom aliases 2018-04-20 20:08:38 -04:00
Wenxuan 576891ac7f Improve gd command
Now gd works in subdirectory of repo.
2018-04-09 17:33:46 +08:00
Wenxuan e240d73260 Improve gi function 2018-03-24 10:23:17 +08:00
Wenxuan 19a8825345 Make sure no '-F' option on less pager 2017-12-22 20:53:31 +08:00
Wenxuan 2b678d1b90 Refactor 2017-11-29 00:24:05 +08:00
Wenxuan 2295111582 Add GI function 2017-11-28 19:58:59 +08:00
Wenxuan e002b469d6 Improve error prompt 2017-11-25 11:12:27 +08:00
Wenxuan 1ffcb915d8 Improve gi function 2017-11-24 00:18:54 +08:00
Wenxuan 3d871b10c4 Refactor 2017-11-23 23:20:46 +08:00
Wenxuan 0a3bbb4ecc Fix variable lifecycle :bugs: 2017-11-23 18:05:15 +08:00
Wenxuan ae84827919 Remove environment dependency 2017-11-23 16:45:16 +08:00
Wenxuan e055fc6ac6 Fix color 🐛 2017-11-23 16:29:29 +08:00
Wenxuan 1930af842a Fix quote issue 2017-11-22 16:59:02 +08:00
Wenxuan fc3d7b9292 Fix xargs bugs on macos 2017-11-22 16:25:42 +08:00
Wenxuan 56f3be3106 Init commit 2017-11-15 23:42:38 +08:00