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

Refresh symbol or breadcrumb when Outline window is closed? #62

Open
iwinux opened this issue Apr 12, 2024 · 1 comment
Open

Refresh symbol or breadcrumb when Outline window is closed? #62

iwinux opened this issue Apr 12, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed up for grabs Good for newcomers & available for contributions

Comments

@iwinux
Copy link

iwinux commented Apr 12, 2024

When the Outline window is open, get_symbol() and get_breadcrumb() return current symbol (following cursor) correctly. But when the window is closed, these 2 functions only return cached result. I've tried calling follow_cursor() and refresh() but the symbol information is not updated.

Is it possible to refresh it without opening the Outline window? My use case is to display it in status line (managed by lualine).

@hedyhli hedyhli added enhancement New feature or request help wanted Extra attention is needed up for grabs Good for newcomers & available for contributions labels Apr 12, 2024
@hedyhli
Copy link
Owner

hedyhli commented May 2, 2024

This sounds a little out-of-scope (outline.nvim revolves around that sidebar window itself, not "all symbols in general"), and currently I don't see a trivial way to implement this.

That said, I understand that it's simpler for us as users to just install one plugin and have it cover everything (both sidebar and statusline breadcrumb), so I'll leave this up for grabs in case anyone wishes to pursue finding a reasonable way to support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed up for grabs Good for newcomers & available for contributions
Projects
None yet
Development

No branches or pull requests

2 participants