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

feature: Enhanced Identification of trouble.nvim Mode #357

Closed
1 task done
tummetott opened this issue Nov 13, 2023 · 2 comments · Fixed by #437
Closed
1 task done

feature: Enhanced Identification of trouble.nvim Mode #357

tummetott opened this issue Nov 13, 2023 · 2 comments · Fixed by #437
Labels
enhancement New feature or request

Comments

@tummetott
Copy link

Did you check the docs?

  • I have read all the trouble.nvim docs

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

It would be valuable to determine the mode in which the trouble.nvim window is currently opened. For instance, I would like to display in my winbar whether the trouble window currently contains my quickfix list, location list, or workspace diagnostics. When I work with, for example, workspace diagnostics and my quickfix list simultaneously, and switch between them, it can be quite confusing not to have clear visibility into which one is currently displayed in the trouble window.

Describe the solution you'd like

Include information about the mode in the bufname

The filetype should remain consistent for all trouble windows.

When utilizing edgy.nvim, one could write a filter function that specifically targets buffers with e.g bufname == "ToubleQuickfix" and then assign a title like title = "Trouble Quickfix" to be shown in the winbar

Describe alternatives you've considered

Provide an API function such as require("trouble").get_mode()

Additional context

No response

@tummetott tummetott added the enhancement New feature or request label Nov 13, 2023
@folke
Copy link
Owner

folke commented Mar 29, 2024

Check vim.w.trouble.mode

@folke folke closed this as completed Mar 29, 2024
@folke
Copy link
Owner

folke commented Mar 29, 2024

only on v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants