1
0
mirror of https://github.com/golang/go synced 2024-11-18 04:14:49 -07:00
go/gopls/doc
Rob Findley ea3a2cdbfb internal/lsp/source: support some fzf-like tokens in symbol matching
It's useful to be able to switch between case sensitive, case
insensitive, and fuzzy matching for symbol without having to reload
gopls. FZF has some nice syntax for this:
  https://github.com/junegunn/fzf#search-syntax

Adopt a subset of this syntax for our symbol search:
  ' for exact matching
  ^ for prefix matching
  $ for suffix matching

It would be straightforward to also support inversion, using
'!', but I deemed this unnecessary.

I think we should adopt this, since none of these symbols conflicts with
Go identifiers, or (AFAIK) with special syntax in major LSP clients.

Change-Id: If2e4d372d4a45ace5ab5d4e76c460f1dcca0bc2b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/248418
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-09-08 16:35:05 +00:00
..
acme.md cmd/gopls: add documentation 2019-08-27 15:23:08 +00:00
analyzers.md gopls/doc: fix composites analyzer name 2020-06-12 18:47:36 +00:00
atom.md gopls/doc: add documentation for gopls with Atom 2019-11-27 06:49:51 +00:00
command-line.md gopls/doc: add and make minor changes to documentation 2019-09-16 01:38:12 +00:00
contributing.md gopls/doc: add and make minor changes to documentation 2019-09-16 01:38:12 +00:00
daemon.md internal/lsp/lsprpc: improvements to daemon logging 2020-07-16 19:33:22 +00:00
design.md gopls/doc: minor fixes in design.md and implementation.md 2020-01-14 23:33:23 +00:00
emacs.md gopls/doc: remove company-lsp from emacs.md 2020-05-11 23:25:44 +00:00
faq.md cmd/gopls: add documentation 2019-08-27 15:23:08 +00:00
implementation.md gopls/doc: minor fixes in design.md and implementation.md 2020-01-14 23:33:23 +00:00
integrating.md all: fix broken links to LSP specification 2019-10-02 18:32:53 +00:00
settings.md internal/lsp/source: support some fzf-like tokens in symbol matching 2020-09-08 16:35:05 +00:00
status.md gopls/doc: Clear out fixed issues 2020-02-24 23:14:51 +00:00
subl.md cmd/gopls: add documentation 2019-08-27 15:23:08 +00:00
troubleshooting.md gopls/doc/troubleshooting.md: update the gopls output channel name 2020-07-01 15:12:20 +00:00
user.md internal/lsp/source: support some fzf-like tokens in symbol matching 2020-09-08 16:35:05 +00:00
vim.md gopls/docs: adding nvim-lsp option in gopls README file 2020-04-07 19:18:07 +00:00
vscode.md gopls/doc: update vscode-go GitHub link 2020-06-12 15:25:27 +00:00