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

fix: Add space escaping for source command on makeprg setting #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yahorni
Copy link

@yahorni yahorni commented Nov 13, 2024

Problem

A path to my ledger file contains spaces and during nvim/vim start I see the error:

$ nvim "ledger file with spaces.ledger"
image

$ vim "ledger file with spaces.ledger"
image

Tested both ledger and hledger binaries, only ledger is affected

Solution

Escaping source command argument with substitute (the same way it's done in #122) resolves the issue
Additionaly, I formatted the line with concatenation for better readability for both ledger/hledger

Tested on vim 9.1.785 and neovim v0.10.2
Probably fixes #144

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 this pull request may close these issues.

Still encountering issues with spacing in filename
1 participant