Commit graph

40 commits

Author SHA1 Message Date
AoHiyuki 56f5aaafbc
feat: add fisher support for fish
Fix typo in function name and add some function descriptions

Update fish ci job

Update README

Update README for fish manual installation, revert shortlink

Merge all the files back to 1 like before

refactor: use symbol link

docs: simplify changes
2020-10-13 11:04:47 +08:00
Wenxuan Zhang dccfff52e5 refactor: FORGIT_IGNORE_PAGER etc. (#112) 2020-09-11 17:20:46 +08:00
Wenxuan Zhang 6c6e493b94 refactor: prefer using .cache directory 2020-09-11 17:11:58 +08:00
mirsella d8d530ec50
feat: add FORGIT_IGNORE_PAGER option (#112)
* added FORGIT_BAT_OPTION to add optional options to bat

* fixed arguments

* removed curly brace  in for fish

* BAT_OPTION to BAT_OPTS

* BAT_OPTION to BAT_OPTS in readme

* changed BAT_OPTS TO BAT_PAGER which is directly the command used to output

* update readme for FORGIT_IGNORE_PAGER
2020-09-11 16:33:55 +08:00
mirsella e8f32648a6
refactor: prefer using XDG directory (#113)
* FORGIT_GI_REPO_LOCAL and XDG
if FORGIT_GI_REPO_LOCAL is not already declared, use XDG_CACHE_HOME/.forgit/gi/repos/dvcs/gitignore if declared, and if not declared too, use the the fallback path which is ~/.forgit/gi/repos/dvcs/gitignore

* fixed fish
2020-09-11 11:02:38 +08:00
Chris Apple 1b366bb5a4
Changed ! to "not" 2020-09-10 09:05:36 -07:00
mirsella ff0c6fd639 fixed fish if .forgit wasn't already existing
when using forgit for the first time, the .forgit folder is not
created. forgit::ignore::update, which git glone the repo, was executed
only if the folder existed, so now it execute only if the .forgit don't
exist.

also, there some weird things in the logic with forgit::ignore::update,
some part of the code it not running in any case, since the if test -d
in the fonction is called in a fonction which is called only if the
folder don't exist, or i miss something ?
2020-09-10 15:14:28 +02:00
Christopher Apple a732afafb4 git cherry working in fish shell 2020-09-03 10:46:39 -07:00
Wenxuan Zhang 12d5d3c0d1 fish: sync #107 2020-09-02 15:40:02 +08:00
Kalle Jillheden e0573975ef feat: configurable pager
Former-commit-id: c91135251b74851241e453b460150c6bdf20170f
2020-08-21 16:03:32 +08:00
Christopher Apple 8061fb3594 added fish support for git show+diff pager
Former-commit-id: 3d3ef5336e
2020-08-12 09:42:35 -07:00
Christopher Apple 8ad950db00 fixed gcf, and a bunch of other things. Added git status before most returns
Former-commit-id: 896a960a03
2020-06-13 10:59:47 -07:00
Wenxuan Zhang 2170e5b3b9 feat: try to suppress global '-1' option for fzf
Use '+1' to suppress '-1' option set by `FZF_DEFAULT_OPTS`.
This is a undocumented option for `fzf`. There is no guarantee that it
will always work. It's better to not set such options in
`FZF_DEFAULT_OPTS` which are not globally applicable. #80


Former-commit-id: 1f1e135b9f
2020-05-07 19:38:54 +08:00
Christopher Apple 62ae7cde14 added glo slice to fish, warning about fish 3.1
Former-commit-id: b4f0efdeca
2020-04-20 15:44:02 -07:00
Christopher Apple 566b6470d0 fixed git stash show
Former-commit-id: 5b839bc34c
2020-04-09 09:22:16 -07:00
Christopher Apple 095327b47d fixed git diff preview fish
Former-commit-id: 2f2122bd59
2020-04-09 09:18:27 -07:00
Pepijn Overbeeke 2021e30e16 Fix syntax error in git stash viewer for fish
Former-commit-id: 6beeb2a96e
2020-04-08 10:00:03 +02:00
Wenxuan Zhang c96b426f2b fix: fix preview error on gd. #74
Former-commit-id: d0f09565e0
2020-04-08 10:45:18 +08:00
Christopher Apple 14bf521b51 Feature toggle log graph, fish
Former-commit-id: f1f5fcc9f5
2020-03-30 09:06:55 -07:00
Wenxuan Zhang 6b63174ca0 fix: fix preview error for fish part. closes #76
Former-commit-id: 5426e7c19c
2020-03-22 22:25:08 +08:00
Wenxuan Zhang 7505b82a1d fix: 🐛 Fix issue on ga when path contains blanks
Former-commit-id: 4eb0832e53
2020-01-15 15:30:52 +08:00
Wenxuan Zhang b5ef8632e2 Refactor
Former-commit-id: fa3303b432
2020-01-14 22:36:52 +08:00
Carlos de Paula e73cef6856 Add files as arguments
Add case where "ga" command can accept files as arguments
that will be passed directly to "git add" bypassing fzf.


Former-commit-id: 0c6199b8cd
2020-01-14 22:10:40 +08:00
Christopher Apple 38cdcdb4b9 added untracked files to fish git-add
Former-commit-id: 857423fc24
2019-12-30 13:12:59 -08:00
Wenxuan Zhang d4285f3ea9 fix: 🐛 Fix path issue on osx. #65
Former-commit-id: 10308be2c3
2019-12-17 11:46:15 +08:00
Chris Apple 97fc2461d1 Deleted an extra echo left in from debugging
Former-commit-id: 70ac790418
2019-12-15 09:01:27 -08:00
Christopher Apple 4586b34e61 fixed add even more, leading whitespace issue
Former-commit-id: fd63265fe5
2019-11-26 09:43:36 +01:00
Christopher Apple 050db8b7cd Better way to do spaces in filenames
Former-commit-id: 803cb4fd2d
2019-11-26 09:35:33 +01:00
Christopher Apple 2670b6e69b first attempt at new commands, removed pipe from pager command to be more readable
Former-commit-id: bd14e559e5
2019-11-25 23:59:45 +01:00
Wenxuan Zhang 263163f53e fix: 🐛 No necessary to check if fzf exists during loading. #57
Former-commit-id: add3a02ebb
2019-11-22 17:52:09 +08:00
Benjamin Caradeuc b9800cb4d0 🐛 fix typo in warning message
Former-commit-id: 903fba2c2f
2019-11-20 23:46:45 +01:00
Christopher Apple 5e22207ace Moved from hash to type -q
Former-commit-id: 592f8cc10e
2019-11-20 17:05:19 +00:00
Christopher Apple 79b3575d87 Added git pager support
Former-commit-id: 28ae99d659
2019-11-11 08:12:17 -07:00
Christopher Apple 626661f855 Fixed issue with mutliple inputs to git commands using ctrl+r
Former-commit-id: 94a2c9c059
2019-11-07 08:36:45 -07:00
Christopher Apple ad76f6259c Moved warning for no fzf to forgit::warn
Former-commit-id: 325e98cd03
2019-11-05 20:06:45 -07:00
Christopher Apple 1535164304 First draft of fish forgit completed :)
Former-commit-id: 10f0af9bb8
2019-11-03 12:32:11 -07:00
Christopher Apple 3eac59e222 stopping for the night
Former-commit-id: 46bfc0b6c6
2019-11-02 21:23:39 -06:00
Christopher Apple 82be622a09 stash working
Former-commit-id: e0dadacdfe
2019-11-02 21:08:34 -06:00
Christopher Apple 7c20f7bd5c restore now working
Former-commit-id: 35cbef1d59
2019-11-02 21:03:34 -06:00
Christopher Apple c47e836b67 starting getting fish added to forgit
Former-commit-id: e8b008c08b
2019-11-02 20:51:25 -06:00