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

"fromAltBuf" & "forceCollect" questions #23

Open
acamso opened this issue Aug 10, 2022 · 1 comment
Open

"fromAltBuf" & "forceCollect" questions #23

acamso opened this issue Aug 10, 2022 · 1 comment

Comments

@acamso
Copy link

acamso commented Aug 10, 2022

@matsui54

Hi, I'm setting up the plugin and have questions regarding these two parameters.

fromAltBuf: I'm usually working within a loaded nvim session. Even though a buffer is loaded in another tab, I noticed that I need to switch to the tab/buffer before ddc picks up the buffer as a source. Is there a way to have it automatically use all loaded buffers (visible and non-visible) without navigating to them?

forceCollect: I'm a bit confused about this parameter. Is this just an override for limitBytes for buffers in the current tab?

If you want to ensure that keywords are always collected on initialization of ddc, enable this feature.

What does this mean exactly?

Thank you

@Shougo
Copy link
Contributor

Shougo commented Jan 2, 2024

fromAltBuf: I'm usually working within a loaded nvim session. Even though a buffer is loaded in another tab, I noticed that I need to switch to the tab/buffer before ddc picks up the buffer as a source. Is there a way to have it automatically use all loaded buffers (visible and non-visible) without navigating to them?

I have read the code.
The cache are made from current tab buffers. It is feature.

forceCollect: I'm a bit confused about this parameter. Is this just an override for limitBytes for buffers in the current tab?

If forceCollect is set, limitBytes is ignored.

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

No branches or pull requests

2 participants