sourcegraph/client/client-api
Ólafur Páll Geirsson fac4477cd2
Rethink code navigation with CodeMirror token selection (#44698)
* Implement token cursor using CodeMirror selections

Previously, the token cursor feature flag used HTML href links for go to
definition. This commit changes the behavior of the feature flag to use
CodeMirror selections instead along with several other big changes:

* Cmd+Click for Go to definition
* Enter for Go to definition
* Space for Show popover
* Right-click menu for Go to definition and Find references
* Up/Down/Right/Left arrow to move the selection to the next token

Demo https://www.loom.com/share/a0fa53badd4d419081dcfd1a2fbc7e4e

Please give it a try and let us know what you think.

* Fix failing integration tests

* Hide popover when moving the selection

* Close hover tooltip on escape

* Replace dom manipulation with idiomatic CodeMirror extension

* Revert ARIA role='main'

* Address review feedback

* s/occurence/occurrence
2022-12-05 07:11:41 +00:00
..
src Rethink code navigation with CodeMirror token selection (#44698) 2022-12-05 07:11:41 +00:00
.eslintignore Create a client-api package (#31151) 2022-03-17 01:17:26 -07:00
.eslintrc.js Create a client-api package (#31151) 2022-03-17 01:17:26 -07:00
babel.config.js Create a client-api package (#31151) 2022-03-17 01:17:26 -07:00
jest.config.js Create a client-api package (#31151) 2022-03-17 01:17:26 -07:00
package.json [SG-39284] Upgrade yarn to the latest version (#39728) 2022-08-31 20:39:53 -07:00
README.md Create a client-api package (#31151) 2022-03-17 01:17:26 -07:00
tsconfig.json [SG-33302] Upgrade all client packages to use the latest version of the JSX transform (#34287) 2022-04-22 12:25:38 +01:00

Client API

Sourcegraph Client API