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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
Some ideas: https://marketplace.visualstudio.com/items?itemName=sheilacat.zknotes |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
Other suggestion: easy creation of a new note using current selection as the title |
Beta Was this translation helpful? Give feedback.
-
|
Another: "refactor" by renaming a tag across the zettelkasten. |
Beta Was this translation helpful? Give feedback.
-
|
@srid Are you working on this? or anyone? |
Beta Was this translation helpful? Give feedback.
-
|
@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. |
Beta Was this translation helpful? Give feedback.
-
|
There will be an "official" neuron lsp implentation in haskell. |
Beta Was this translation helpful? Give feedback.
-
|
@aca I can help with the "official" neuron lsp! |
Beta Was this translation helpful? Give feedback.
-
|
@sureyeaah. You should join matrix and discuss about official neuron lsp. |
Beta Was this translation helpful? Give feedback.
-
|
I do not think I will be able to work on the "official" neuron lsp. |
Beta Was this translation helpful? Give feedback.
-
|
the call/caller graph features of LSP can also be utilized for viewing/navigating the z-index. |
Beta Was this translation helpful? Give feedback.
-
|
An extension that displays neuron HTML preview to side would be pretty cool: https://twitter.com/owickstrom/status/1301241287727812610 |
Beta Was this translation helpful? Give feedback.
-
|
Reference implementation in Haskell: https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server |
Beta Was this translation helpful? Give feedback.
-
|
If anybody feels like taking a stab at this, I added sample LSP server in Haskell here: #539 This provides a |
Beta Was this translation helpful? Give feedback.
-
|
One tiny benefit of using LSP would be that renames on large notebooks would be faster ( |
Beta Was this translation helpful? Give feedback.
-
|
Inspiration: https://github.com/artempyanykh/zeta-note#screenshots |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions