-
Notifications
You must be signed in to change notification settings - Fork 19
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
opts.[direction].title
should accept string and function
#59
Comments
opts.[direction].title
should accept string **and function**opts.[direction].title
should accept string and function
I realized I can solve the second use case with the {
title = 'QUICKFIX LIST',
filter = function(_, win)
return vim.fn.getwininfo(win)[1]['loclist'] ~= 1
end,
ft = 'qf',
},
{
title = 'LOCATION LIST',
filter = function(_, win)
return vim.fn.getwininfo(win)[1]['loclist'] == 1
end,
ft = 'qf',
}, However, in cases where a single filetype covers various instances, like help documents and manpages, it would be very helpful to have the filename or bufname included in the |
Accept and use function as view title. This provides option to implement per view dynamic/context based title.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
🤖 I have created a release *beep* *boop* --- ## [1.10.0](v1.9.1...v1.10.0) (2024-07-07) ### Features * **title:** implement dynamic view title feature ([#90](#90)) ([cdb740f](cdb740f)), closes [#59](#59) * **view:** add collapsed on start option to pinned views ([#89](#89)) ([2546a8e](2546a8e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Did you check the docs?
Is your feature request related to a problem? Please describe.
It would be awesome if
opts.[direction].title
can accept a string and a function (the functions must return a string).Two use cases:
Describe the solution you'd like
opts.[direction].title
accepts string and functionDescribe alternatives you've considered
Disabling the winbar
winbar = false
for a filetype and handling it manually with my winbar plugin. However this is a workaround and i'd love to handle all the winbar titles inedgy.nvim
Additional context
No response
The text was updated successfully, but these errors were encountered: