Diego Vélez
cc07dc1599
feat: use git-dir and work-tree from environment ( #142 )
...
Passes `work-tree` and `git-dir` arguments for Lazygit.
This is very useful when using a bare git repo, so that Lazygit can still be used to manage the repo.
2024-12-04 11:44:05 -05:00
Hassan El-Mehalawi
bd36b40814
fix: use quotes to allow filtering on files with spaces in path ( #141 )
...
:LazyGitFilterCurrentFile currently breaks if the path of the file
contains a space. Fixed by wrapping the path in quotes.
2024-10-01 07:36:39 -04:00
akan
dc56df433b
Get the path of current file relative to the git root
2024-07-08 18:59:56 -04:00
Srivatsan Ramaswamy
de35012036
feat: Add support for multiple lazygit config files
...
Lazygit supports using multiple config files: https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md?plain=1#L346
This commit adds code to parse vim.g.lazygit_config_file_path as a `string | table`,
then passes the files to `lazygit` via the `-ucf` flag
2023-09-26 00:30:26 -04:00
Tashreeq Peck
b4a4c6d26b
fix: store win and buffer for :LazyGitFilter command
2023-07-15 17:39:21 +08:00
Dheepak Krishnamurthy
56045b4a0d
feat: change custom config file logic ✨
2022-11-02 08:34:49 -04:00
Dheepak Krishnamurthy
2fd5b526e2
fix: escape spacing 🐛
2022-11-02 08:30:43 -04:00
Dheepak Krishnamurthy
e2b1e4c231
fix: Change default lazygit config directory 🐛
2022-11-02 08:27:28 -04:00
Chaz
914816035f
fix(lazygit.lua): escape 'space' in filepath
2022-11-02 00:18:07 -10:00
Dheepak Krishnamurthy
e2be2a90b0
Merge pull request #71 from thefux/master
...
#69 add custom config file support
2022-11-01 18:06:51 -04:00
Dheepak Krishnamurthy
c7a8bfb606
Merge pull request #72 from thefux/bug/60-fix-lazygit-telescope-extension
...
Bug/60 fix lazygit telescope extension
2022-10-25 16:56:55 -04:00
cnrrobertson
37a4ab0a6e
Add LazyGitCurrentFile command to open floating LazyGit window at project root of current file
2022-10-25 16:16:48 -04:00
thefux
061256662c
#60 small refactoring: update teardown cleanup process
2022-09-06 15:34:26 +02:00
thefux
2c7621e4f9
#69 add custom config file support
2022-09-04 20:10:37 +02:00
ecosse3
ad5ea9ebeb
feat: add LazyGitFilterCurrentFile command
2022-06-10 18:40:52 +02:00
TheBlob42
8967fb8599
feat: return to the previous window on exit
...
Save the window from which the LazyGit command was executed and return
to it on exit, so in case of multiple splits the user does not have to
navigate back manually
blub
2022-05-10 08:41:24 +02:00
thefux
da9bafc2f0
clean up and add some ducumentation
2022-03-06 15:05:18 +01:00
thefux
b419f3e8d1
small refactoring
2022-03-06 11:18:41 +01:00
Sébastien
ba2645c728
add vim checktime cmd to refresh buffers on lazygit exit
2022-03-06 00:46:01 -04:00
thefux
cd54911788
update plugin
2022-02-22 22:23:50 +01:00
thefux
09d1598182
add fix
2022-02-21 20:38:39 +01:00
thefux
5e121d88da
clean up
2022-02-21 20:27:36 +01:00
thefux
7a41db2131
add telescope extension ^& small refactoring (still not done)
2022-02-11 22:16:12 +01:00
Dheepak Krishnamurthy
2ee9f4d0fc
Merge pull request #51 from TheBlob42/master
...
fix: improve git commit message via nvr
2022-01-15 02:08:23 -07:00
Dheepak Krishnamurthy
56e71f5cda
Merge pull request #49 from Avimitin/fix-submodule
...
refactor: delete the wrong and useless path check
2022-01-15 02:06:18 -07:00
tobias.voelzel
4c33a74098
fix: improve git commit message via nvr
...
Switch to the BufUnload event for reopening LazyGit window, so that the
user can switch windows before submitting his commit message.
2022-01-14 08:24:50 +01:00
Avimitin
4495d351ed
refactor: update the config file path
...
The config file path had been updated in
03b9db5e0a
Signed-off-by: Avimitin <avimitin@gmail.com >
2022-01-04 16:52:25 +08:00
Avimitin
133ed492da
refactor: delete the wrong and useless path check
...
The file path check is incorrect. It gives the main repository path to
lazygit, not the submodule path. Lazygit itself can do well for the
path-checking job, so just let lazygit deal with it.
Symlink check functionality is kept.
Signed-off-by: Avimitin <avimitin@gmail.com >
2022-01-04 15:46:44 +08:00
f
18d121833b
vim.fn.isdirectory(..) return 0/1
2021-11-21 14:09:52 +08:00
f
940495546f
fix: to check path exists. lazygit -g "notExistPath" will error: *fs.PathError stat /xxxxxx/.git/: no such file or directory
2021-11-21 13:12:22 +08:00
f
148d19ca7a
fix: git rev-parse --show-superproject-working-tree return fatal: not a git repository (or any of the parent directories): .git when execute not in a git repo
2021-11-21 10:51:23 +08:00
Dheepak Krishnamurthy
bcd111df61
Change mkdir to take p as argument
...
This allows creating a nested folder if it doesn't exist
2021-10-31 14:12:16 -06:00
Ryan David Sheasby
17363d8200
Close #28
2021-08-07 22:25:59 +02:00
Nazeeh ElDirghami
44e8531147
fix lazygit launching on Windows
2021-07-21 10:36:28 -07:00
Dheepak Krishnamurthy
08920a3288
Fix shell not reverting to oldshell
2021-07-14 14:00:04 -06:00
Dheepak Krishnamurthy
52b911aed6
Fix buffer existing bug
2021-07-07 21:38:54 -06:00
Dheepak Krishnamurthy
480e1c1c05
Format files
2021-07-07 21:37:27 -06:00
Dheepak Krishnamurthy
9a2e5a3241
Merge branch 'master' into bug/support-fish-shell
2021-07-07 21:33:45 -06:00
Dheepak Krishnamurthy
acc383d1ea
Fix submodule bug
2021-05-10 00:38:27 -06:00
Dheepak Krishnamurthy
fb5ab7d26a
Merge pull request #37 from jdelkins/master
...
Add option to use plenary.nvim to manage floating window
2021-03-25 15:38:09 -06:00
Dheepak Krishnamurthy
917bc0a555
Remove print
2021-03-24 19:16:12 -06:00
Dheepak Krishnamurthy
5787f9b3da
Add double quotes
2021-03-24 19:15:34 -06:00
Dheepak Krishnamurthy
854b6738f1
Add fn.exepath(cmd)
2021-03-24 19:07:24 -06:00
Joel D. Elkins
e0b272f771
Add option to use plenary.nvim to manage floating window
2021-03-24 17:32:57 -05:00
Joel D. Elkins
3a8fb14119
fnameescape path before calling lazygit
2021-03-24 16:33:44 -05:00
Joel D. Elkins
7672859d9c
Don't use -p if GIT_DIR or GIT_WORK_TREE are set
...
Setting `-p <path>` is the same as setting `-w <path> -g <path>/.git/`,
but this eliminates the possibility that the git dir could be outside of
the work tree, or else named something besides `.git`. Use case for me
is my configuration files are VC'ed in a git repo, and checked out into
`$HOME` (the work tree). The repo is a bare repo elsewhere.
2021-01-21 12:27:02 -06:00
Dheepak Krishnamurthy
df7ba07b0f
Support fish shell
2020-10-28 03:52:22 -06:00
Yiqun Ding
db6ecf4acc
Add option to customize popup window corners
...
The default corners are round and may not look so good with some
font, add this option g.lazygit_floating_window_corner_chars to
allow user to customize the corner characters.
2020-10-16 21:32:59 +08:00
Dheepak Krishnamurthy
66874bd5f6
Fix variables
2020-08-09 20:18:41 -06:00
Dheepak Krishnamurthy
4c337c8b12
Make LazyGitConfig work
2020-08-09 19:50:06 -06:00