Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgit no longer allowing variables inside gitconfig for pager #380

Closed
6 of 10 tasks
blaineventurine opened this issue Apr 2, 2024 · 3 comments · Fixed by #381
Closed
6 of 10 tasks

Forgit no longer allowing variables inside gitconfig for pager #380

blaineventurine opened this issue Apr 2, 2024 · 3 comments · Fixed by #381

Comments

@blaineventurine
Copy link

blaineventurine commented Apr 2, 2024

Check list

  • I have read through the README
  • I have the latest version of forgit
  • I have searched through the existing issues

Environment info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

I have my Git pager set to pager = delta --side-by-side --width $(expr ${COLUMNS} - 10) --wrap-max-lines unlimited.

The newest version of Forgit no longer allows variables to be used - it will just display error: unexpected argument '10)' found.
If I set it to --width ${COLUMNS}, it tells me Invalid value for width: "${COLUMNS}" is not an integer

Bpyassing Forgit and just calling git diff shows everything as I would expect.

@cjappl
Copy link
Collaborator

cjappl commented Apr 2, 2024

Thanks for reporting! We had a big refactor recently and expected a little churn.

@sandr01d I didn't have time to fully get into this tonight, but I can repro on mac/fish. I bisected and found this was the commit that introduced it:

bfffda6

@sandr01d
Copy link
Collaborator

sandr01d commented Apr 2, 2024

Can reproduce and found the issue. I've created #381 to start a discussion on how to solve this with more details. This does not work for the the enter commands though (e.g. pressing enter in gd or gss to view a single file/stash) with the pager configuration provided, but this wasn't working before the last release, so I would argue this to be out of scope - at least for now.

@blaineventurine
Copy link
Author

Thanks a ton for the quick reply! I'm glad it's reproducible and not just a problem with me.

@sandr01d sandr01d linked a pull request Apr 8, 2024 that will close this issue
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants