Commit graph

111 commits

Author SHA1 Message Date
Doron Behar 827d1e56a3 Add documentation and align it with actual functionality 2019-05-29 09:32:17 +03:00
Doron Behar bd48b08e4a Use a more general usage env vars to add opts 2019-05-29 09:25:30 +03:00
Doron Behar cf54db9c72 Fix some more bindings and preview commands 2019-05-29 06:39:43 +03:00
Doron Behar b6f1476d86 Enable configuring preview command for every cmd 2019-05-28 15:41:45 +03:00
Wenxuan 439029b47b docs: ✏️ Update README 2019-05-23 23:40:30 +08:00
Wenxuan Zhang 7459ba7cda Support custom gitignore templates repo. #20 2019-03-14 14:15:05 +08:00
Wenxuan Zhang 3c7b9ea4b8 Remove theme & style config for bat. 2019-01-22 15:53:40 +08:00
Wenxuan 9651acbef2 Fix bat url refer comment. 2019-01-22 12:01:12 +08:00
Wenxuan 28d55baf67 Update keybinds table. 2019-01-22 11:58:47 +08:00
Wenxuan ee79b779fd Clean up. 2019-01-22 11:25:38 +08:00
Wenxuan ebd667ad84 Update README. 2019-01-21 11:59:54 +08:00
Wenxuan 1a01a6a977 Update README. 2019-01-21 11:53:54 +08:00
Wenxuan 1b0254a7c6 Respect user's config for bat. 2019-01-21 11:39:32 +08:00
Wenxuan 8a647a9cea Respect user's config for bat(except style). 2019-01-21 11:33:31 +08:00
Wenxuan 2463d767fc Fix function name. 2019-01-21 11:00:45 +08:00
Wenxuan 09007bfe23 Update README 2019-01-18 20:25:39 +08:00
Wenxuan 7aafb7991a Update README 2019-01-18 20:00:31 +08:00
Wenxuan 7c0da36ba7 Feature: Remove option list on gi. #16 2019-01-18 17:52:52 +08:00
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
Wenxuan 49d2c36006
Merge pull request #14 from laggardkernel/feature-local-gitignore
Feature: use gitignore templates from local repo directly
2019-01-17 19:14:57 +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
Wenxuan a14edad451 Update README 2019-01-11 17:32:25 +08:00
Wenxuan f849552a52
Merge pull request #13 from laggardkernel/fix-multi-selection
Fix multi selection in gitignore generation
2019-01-11 17:28:47 +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
Wenxuan db21e7a3d2 Update README 2018-11-07 10:32:11 +08:00
Wenxuan b9100a95da
Merge pull request #11 from doronbehar/ctrl-aliases
Document env var FORGIT_NO_ALIASES
2018-11-07 10:23:36 +08:00
Doron Behar 9edb2a1fcf Document env var FORGIT_NO_ALIASES 2018-11-05 22:21:29 +02:00
Wenxuan c1ebb210e0
Merge pull request #10 from doronbehar/ctrl-aliases
Enable not defining aliases at all
2018-10-31 10:09:43 +08:00
Doron Behar cc269c82fa Check $FORGIT_NO_ALIASES in bash script as well 2018-10-30 18:35:27 +02:00
Doron Behar 57293ea6e9 Enable not defining aliases at all 2018-10-30 16:21:28 +02:00
Wenxuan 3fca70dfa1
Merge pull request #9 from mars90226/master
Add `git stash` viewer for bash
2018-10-12 15:42:42 +08:00
marspeng 7461d58662 Add git stash viewer for bash 2018-10-12 15:12:16 +08:00
Wenxuan 319d01b06c Update README 2018-09-27 20:47:55 +08:00
Wenxuan 4ee7af0f84 Amend README. 2018-09-18 13:37:07 +08:00
Wenxuan 3792406afa Add git stash viewer (#8). 2018-09-18 13:36:56 +08:00
Wenxuan 6599369fc5
Merge pull request #6 from sohkai/master
zsh: fix typo in aliasing forgit_add
2018-08-07 10:22:32 +08:00