ddc-source-buffer icon indicating copy to clipboard operation
ddc-source-buffer copied to clipboard

"fromAltBuf" & "forceCollect" questions

Open acamso opened this issue 2 years ago • 1 comments

@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

acamso avatar Aug 10 '22 17:08 acamso

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.

Shougo avatar Jan 02 '24 11:01 Shougo