Replies: 21 comments
|
In theory one could also do things like new note creation (eg: felko/neuron-mode#28) -- so all editors can just delegate to neuron in that aspect -- however I'm not sure if that's in the scope of LSP. |
|
I think we can have some kind of a hack here. Go-to-definition provides the mechanism for going to a different file and we could provide "note creation" as a codeaction. |
|
Some ideas: https://marketplace.visualstudio.com/items?itemName=sheilacat.zknotes |
|
Renaming of links could also be a functionality for an LSP. Go-to-definition as @sureyeaah mentioned of course. Now sure if views like backlinking would be implemented an an LSP level. |
|
Other suggestion: easy creation of a new note using current selection as the title |
|
Another: "refactor" by renaming a tag across the zettelkasten. |
|
@aca I'm not working on this. But @trevortknguyen was looking into this. Trevor, are you still interested? If so perhaps you two can collaborate? @aca You might want to join Matrix, the project channel. |
|
There will be an "official" neuron lsp implentation in haskell. |
|
@aca I can help with the "official" neuron lsp! |
|
@sureyeaah. You should join matrix and discuss about official neuron lsp. |
|
I do not think I will be able to work on the "official" neuron lsp. |
|
the call/caller graph features of LSP can also be utilized for viewing/navigating the z-index. |
|
An extension that displays neuron HTML preview to side would be pretty cool: https://twitter.com/owickstrom/status/1301241287727812610 |
|
Reference implementation in Haskell: https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server |
|
If anybody feels like taking a stab at this, I added sample LSP server in Haskell here: #539 This provides a |
|
One tiny benefit of using LSP would be that renames on large notebooks would be faster ( |
|
Inspiration: https://github.com/artempyanykh/zeta-note#screenshots |
|
Is there any other way to use neuron's searching facilities within vscode, currently? Ideally I'd like some quick command, mapped to a keyboard shortcut, where I can search zettel by their title, tag, or contents etc.. Regardless I might like to take a look at this, as I want to get familiar with serving LSP, writing utilities for zettel, and making "production-level" haskell. What's still left to do here? @srid |
|
You can try task prompts and then have vscode run the neuron command with prompted values. For LSP, there is stub code here: https://github.com/srid/neuron/blob/master/src/Neuron/LSP.hs I'd say the next steps are:
As for "writing utilities for zettel" - I imagine that a lot of that can be done by For contributing to production Haskell projects more generally, there are some good first issues here in neuron's issue tracker. Anyway, happy to help with any further specific questions. We also have a Matrix chat room here. |
|
I've integrated an LSP server in It supports neuron's tags and wiki-links. (Kudos to @aca, your neuron LSP Go server got me started)
That's right, you will need to create a VS Code extension for your LSP server. I've created one for One important bit is to configure the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For best editor integration, it'd be awesome to have a LSP (Language Server Protocol) implementation for neuron. It could potentially provide autocompletion of links, automatically showing the link title next to a link, make links clickable, show backlinks, etc., and all this in an editor-agnostic way. That would greatly improve the experience of editing zettels with neuron.
All reactions