ZigBrains icon indicating copy to clipboard operation
ZigBrains copied to clipboard

add support for double shift searching

Open dacheng-gao opened this issue 9 months ago • 9 comments

It would be great if we search Struct, Module, Enum, functions by type double shift.

dacheng-gao avatar Mar 29 '25 12:03 dacheng-gao

Completions/references are implemented by LSP4IJ, so you'll have to forward this request to them.

FalsePattern avatar Mar 30 '25 12:03 FalsePattern

If your language server support document symbols, it should work.

angelozerr avatar Apr 11 '25 17:04 angelozerr

that's odd, the structure view is picking up document symbols properly from the LSP, but the double shift symbol search (or ctrl+alt+shift+n) shows nothing.

Image

Image

FalsePattern avatar Apr 11 '25 20:04 FalsePattern

(Tested on CLion)

FalsePattern avatar Apr 11 '25 21:04 FalsePattern

This symbol tab is filled with lsp workspace symbols, not with document symbols

angelozerr avatar Apr 11 '25 21:04 angelozerr

Shift sift open an another dialog which show symbol for the opened file, right? It is different from your previous test.

This another dialog should be filled like the sructure view to type a symbol and select it to navigate to it.

angelozerr avatar Apr 11 '25 21:04 angelozerr

@FalsePattern is zig language server supports workspace symbol?

If no it is normal that shift shift doesnt work.

angelozerr avatar May 10 '25 14:05 angelozerr

@FalsePattern is zig language server supports workspace symbol?

If no it is normal that shift shift doesnt work.

Ah, it does not, that's why it doesn't work then https://github.com/zigtools/zls/blob/d697a73e5d099f7490ee4a827fa8388705a98961/src/Server.zig#L600

FalsePattern avatar May 11 '25 16:05 FalsePattern

@dacheng-gao See: https://github.com/zigtools/zls/issues/397

FalsePattern avatar May 11 '25 16:05 FalsePattern