Commit graph

118 commits

Author SHA1 Message Date
Nattaphoom Chaipreecha b2fbca2275 Add grh command for git reset HEAD (unstage)
Former-commit-id: 0b52a28ab0
2019-07-05 23:06:46 +07:00
Wenxuan Zhang faad05c65a fix: 🐛 Fix copy keybind
Former-commit-id: c1666a4270
2019-05-30 18:22:18 +08:00
Wenxuan Zhang c193f18285 docs: ✏️ Update README
Former-commit-id: 288e722d97
2019-05-29 19:26:22 +08:00
Wenxuan Zhang 6e7903a1a6 docs: ✏️ Update README
Former-commit-id: ca61c92e9d
2019-05-29 18:56:56 +08:00
Wenxuan Zhang d2d1ab76c7 Support multiple lines fzf opts.
Former-commit-id: 0d542fb3f4
2019-05-29 18:11:11 +08:00
Wenxuan Zhang c5f9fd611e Bug fix.
Former-commit-id: a93657c1fc
2019-05-29 16:39:04 +08:00
Wenxuan ee38401671 Merge pull request #22 from doronbehar/preview_conf
Enable configuring fzf opts for every command

Former-commit-id: 04e6ab932c
2019-05-29 16:11:40 +08:00
Doron Behar e15849c990 Add documentation and align it with actual functionality
Former-commit-id: 827d1e56a3
2019-05-29 09:32:17 +03:00
Doron Behar e766a62ed5 Use a more general usage env vars to add opts
Former-commit-id: bd48b08e4a
2019-05-29 09:25:30 +03:00
Doron Behar 908bcdb548 Fix some more bindings and preview commands
Former-commit-id: cf54db9c72
2019-05-29 06:39:43 +03:00
Doron Behar dc203d70c2 Enable configuring preview command for every cmd
Former-commit-id: b6f1476d86
2019-05-28 15:41:45 +03:00
Wenxuan c54eae42ce docs: ✏️ Update README
Former-commit-id: 439029b47b
2019-05-23 23:40:30 +08:00
Wenxuan Zhang b48856e98a Support custom gitignore templates repo. #20
Former-commit-id: 7459ba7cda
2019-03-14 14:15:05 +08:00
Wenxuan Zhang 2b9aaa594f Remove theme & style config for bat.
Former-commit-id: 3c7b9ea4b8
2019-01-22 15:53:40 +08:00
Wenxuan aafb2bca05 Fix bat url refer comment.
Former-commit-id: 9651acbef2
2019-01-22 12:01:12 +08:00
Wenxuan cf9a37aed7 Update keybinds table.
Former-commit-id: 28d55baf67
2019-01-22 11:58:47 +08:00
Wenxuan ff58ec2900 Clean up.
Former-commit-id: ee79b779fd
2019-01-22 11:25:38 +08:00
Wenxuan 9ac4add6e1 Update README.
Former-commit-id: ebd667ad84
2019-01-21 11:59:54 +08:00
Wenxuan c453076e94 Update README.
Former-commit-id: 1a01a6a977
2019-01-21 11:53:54 +08:00
Wenxuan 1259c09a46 Respect user's config for bat.
Former-commit-id: 1b0254a7c6
2019-01-21 11:39:32 +08:00
Wenxuan c0d82c551c Respect user's config for bat(except style).
Former-commit-id: 8a647a9cea
2019-01-21 11:33:31 +08:00
Wenxuan 4123a2a582 Fix function name.
Former-commit-id: 2463d767fc
2019-01-21 11:00:45 +08:00
Wenxuan af58082478 Update README
Former-commit-id: 09007bfe23
2019-01-18 20:25:39 +08:00
Wenxuan f7b9377c1a Update README
Former-commit-id: 7aafb7991a
2019-01-18 20:00:31 +08:00
Wenxuan cd3ba29ad1 Feature: Remove option list on gi. #16
Former-commit-id: 7c0da36ba7
2019-01-18 17:52:52 +08:00
Wenxuan 1802ec26fc Update README
Former-commit-id: 99b3c66cd6
2019-01-18 17:41:15 +08:00
Wenxuan 877b153a20 Specified a better bat theme for gitignore
Former-commit-id: 99c973a3a1
2019-01-18 17:19:22 +08:00
Wenxuan 32fe86131a Feature: Add highlight support for gi.
Former-commit-id: 92e64772f7
2019-01-18 16:59:35 +08:00
Wenxuan e2776a28e2 Feature: Support templates not ending with .gitignore
Former-commit-id: 126453c777
2019-01-18 16:11:53 +08:00
Wenxuan 34a2133524 Fix a bug which ignoring the files with link type.
Former-commit-id: babb299206
2019-01-18 15:48:56 +08:00
Wenxuan eb110c636f Update LICENSE.
Former-commit-id: 947954ea84
2019-01-18 15:06:27 +08:00
Wenxuan 1567cdfdbf Improve git color process logic. #15
Former-commit-id: c14ce9312a
2019-01-18 14:55:55 +08:00
Wenxuan 7159c756d1 Avoid variables polluting env.
Former-commit-id: 621676feb2
2019-01-18 12:23:24 +08:00
Wenxuan b6b509a306 Improving logging message.
Former-commit-id: ac6e61d692
2019-01-17 20:44:24 +08:00
Wenxuan 80fe6ac4a6 Refactor & Share code between zsh & sh.
Former-commit-id: 268c6282cb
2019-01-17 19:20:03 +08:00
Wenxuan d25f070bf9 Merge pull request #14 from laggardkernel/feature-local-gitignore
Feature: use gitignore templates from local repo directly
Former-commit-id: 49d2c36006
2019-01-17 19:14:57 +08:00
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
Wenxuan 5024e8fd23 Update README
Former-commit-id: a14edad451
2019-01-11 17:32:25 +08:00
Wenxuan 4727156b5b Merge pull request #13 from laggardkernel/fix-multi-selection
Fix multi selection in gitignore generation

Former-commit-id: f849552a52
2019-01-11 17:28:47 +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
Wenxuan 3cad61acad Update README
Former-commit-id: db21e7a3d2
2018-11-07 10:32:11 +08:00
Wenxuan 46cbfbbc13 Merge pull request #11 from doronbehar/ctrl-aliases
Document env var FORGIT_NO_ALIASES

Former-commit-id: b9100a95da
2018-11-07 10:23:36 +08:00
Doron Behar 5f74c097da Document env var FORGIT_NO_ALIASES
Former-commit-id: 9edb2a1fcf
2018-11-05 22:21:29 +02:00
Wenxuan ca0270b615 Merge pull request #10 from doronbehar/ctrl-aliases
Enable not defining aliases at all

Former-commit-id: c1ebb210e0
2018-10-31 10:09:43 +08:00
Doron Behar 219364d571 Check $FORGIT_NO_ALIASES in bash script as well
Former-commit-id: cc269c82fa
2018-10-30 18:35:27 +02:00