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 dyn_title to builtin.help_tags #3165

Open
xz47sv opened this issue Jun 12, 2024 · 0 comments
Open

add dyn_title to builtin.help_tags #3165

xz47sv opened this issue Jun 12, 2024 · 0 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@xz47sv
Copy link
Contributor

xz47sv commented Jun 12, 2024

Is your feature request related to a problem? Please describe.

When previewing help I'd like to know what file I am previewing, I think there should be a dynamic title option for help_tags.

Describe the solution you'd like

In my local copy I added:

    dyn_title = function(_, entry)
      return utils.path_tail(from_entry.path(entry, false, false))
    end,

to previewers.help in buffer_previewer.lua

Additional context

I didn't open a pull request, because I am unsure if it would be preferable for the filename to be a full path, just the tail or user configurable. But I can open one if my proposed solution is acceptable.

@xz47sv xz47sv added the enhancement Enhancement to performance, inner workings or existent features label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

1 participant