Commit graph

182 commits

Author SHA1 Message Date
Laggard Kernel 48ddadd782 Fix: use case-insensitive find to get local templates
forgit::ignore::get should work on case-sensitive filesystems now

Former-commit-id: cf4c45547c
2019-01-17 17:20:59 +08:00
Laggard Kernel 28c4bf41e1 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.


Former-commit-id: c1a8bd71dc
2019-01-17 14:56:01 +08:00
laggardkernel f648d171cc Fix: change replstr into variable in forgit::ignore::get
Former-commit-id: b3b5110723
2019-01-11 16:45:02 +08:00
laggardkernel c9869c2167 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


Former-commit-id: 51961b763f
2019-01-11 16:27:16 +08:00
Wenxuan bd2974e397 Preview only show specified files.
Former-commit-id: 737e573032
2018-11-26 17:52:46 +08:00
Wenxuan c0d1c86459 Make copy command configurable.(#12)
Former-commit-id: 5deb20fef9
2018-11-09 11:34:04 +08:00
Wenxuan b83af3fc18 Don't abort before execute command complete.
Former-commit-id: b52a7c7d0f
2018-11-09 11:26:36 +08:00
Doron Behar 24e0505f88 Enable not defining aliases at all
Former-commit-id: 57293ea6e9
2018-10-30 16:21:28 +02:00
Wenxuan 92cffcaaff Add git stash viewer (#8).
Former-commit-id: 3792406afa
2018-09-18 13:36:56 +08:00
Brett Sun a67e9ec701 zsh: fix typo in aliasing forgit_add
Former-commit-id: 199bc66972
2018-08-07 00:05:24 +02:00
Wenxuan 9b6e5a8b27 Add ctrl-y keybinding on forgit::log.
Former-commit-id: 43522b9ace
2018-07-20 15:39:50 +08:00
Wenxuan 0d34ff50f8 Add git-checkout-file & git-clean functions
Former-commit-id: 72fc7f4c51
2018-06-09 17:08:57 +08:00
Wenxuan df8e4eab0d Support user custom fzf options for forgit (#4)
Former-commit-id: 2dc83917ec
2018-06-03 00:08:24 +08:00
Wenxuan 77fb4fee4f Support custom status.color #3
Former-commit-id: f4e78acefe
2018-05-01 00:13:51 +08:00
Wenxuan 233beea7fa 🐛 Fix wrong alias on ga
Former-commit-id: 42deb6ef1e
2018-04-30 16:52:46 +08:00
Wenxuan 1de566046b Naming refactor
Former-commit-id: 2499abae84
2018-04-30 11:02:16 +08:00
Wenxuan e7817188aa Refactor
Former-commit-id: a05721e8b9
2018-04-30 10:48:09 +08:00
Michael Mior 4847faf292 Allow custom aliases
Former-commit-id: 2d737674e2
2018-04-20 20:08:38 -04:00
Wenxuan 24183eb22d Improve gd command
Now gd works in subdirectory of repo.


Former-commit-id: 576891ac7f
2018-04-09 17:33:46 +08:00
Wenxuan bbcb7fbf20 Improve gi function
Former-commit-id: e240d73260
2018-03-24 10:23:17 +08:00
Wenxuan b27df403d7 Make sure no '-F' option on less pager
Former-commit-id: 19a8825345
2017-12-22 20:53:31 +08:00
Wenxuan fc67eca7b6 Refactor
Former-commit-id: 2b678d1b90
2017-11-29 00:24:05 +08:00
Wenxuan af8f6f5015 Add GI function
Former-commit-id: 2295111582
2017-11-28 19:58:59 +08:00
Wenxuan bb135ea0fb Improve error prompt
Former-commit-id: e002b469d6
2017-11-25 11:12:27 +08:00
Wenxuan 7cda99d569 Improve gi function
Former-commit-id: 1ffcb915d8
2017-11-24 00:18:54 +08:00
Wenxuan 6155e8f560 Refactor
Former-commit-id: 3d871b10c4
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