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

add buffer_dir expansion value #12982

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yudjinn
Copy link

@yudjinn yudjinn commented Feb 27, 2025

this adds an additional buffer_dir predefined expansion value, which is helpful in a lot of command usage, for example:

b = ":sh git -C $(dirname $(realpath %{buffer_name} )) blame -L %{cursor_line},%{cursor_line} $(realpath %{buffer_name})"

can instead be

b = ":sh git -C %{buffer_dir} blame -L %{cursor_line},%{cursor_line} $(realpath %{buffer_name})"

@yudjinn yudjinn force-pushed the bufferdir-expansion-val branch from 1d28ce3 to 4d684bc Compare February 27, 2025 18:41
@yudjinn yudjinn force-pushed the bufferdir-expansion-val branch from 4d684bc to d8b68b7 Compare February 28, 2025 15:58
@yudjinn yudjinn requested a review from thomasschafer March 3, 2025 16:54
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.

2 participants