Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JetBrains Rider like features #33

Open
MordechaiHadad opened this issue Oct 15, 2021 · 3 comments
Open

JetBrains Rider like features #33

MordechaiHadad opened this issue Oct 15, 2021 · 3 comments
Labels
help wanted Extra attention is needed idea

Comments

@MordechaiHadad
Copy link

What?
So I have made a list based on stuff i really enjoyed seeing in Rider:

  • Context Action Menu via Alt + Enter

    • Could be a really useful feature first show code actions and then user mapped actions such as renaming etc instead of remembering a command/10 million keybinds, with the ability to search mapped actions
  • Generate variable name suggestions if type is not a primitive type

  • Move function/class/struct/etc to another file using treesitter(?)

  • Alt + {button} for quick action

    • When cursor hovering on symbol function/class/variable do quick actions such as: quick delete/rename/move up/down and could be used for many other symbol specific actions
  • symbol rearranging using something like CTRL(or ALT when GUI) + Up/Down/Left/Right when cursor hovering symbol

Why?
JetBrains rider and or more generally JetBrains IDEs have some of the best programmer-language supporting features which really does boost the efficiency of the programmer using whatever the programmer is using, and could be somewhat "easily" implemented considering we have LSPs and tree-sitter

Potential existing implementations:
Not that I could find.

Potential pitfalls:
No idea to be honest

@MordechaiHadad MordechaiHadad added help wanted Extra attention is needed idea labels Oct 15, 2021
@Anrock
Copy link

Anrock commented Oct 15, 2021

Context Action Menu via Alt + Enter
Alt + {button} for quick action

Sounds like lighbulb/lspsaga

Move function/class/struct/etc to another file using treesitter(?)

That sounds more like a per-language lsp-specific feature since for this edit to be correct module exports/imports and other semantic things should modified too and treesitter just doesn't know that.

@MordechaiHadad
Copy link
Author

MordechaiHadad commented Oct 16, 2021

Context Action Menu via Alt + Enter
Alt + {button} for quick action

Sounds like lighbulb/lspsaga

Yeah but that's only a very basic feature Context Menu by jetbrains has

Move function/class/struct/etc to another file using treesitter(?)

That sounds more like a per-language lsp-specific feature since for this edit to be correct module exports/imports and other semantic things should modified too and treesitter just doesn't know that.

Yeah i agree.

@AnatoleLucet
Copy link

Move function/class/struct/etc to another file using treesitter(?)

Maybe refactoring.nvim?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed idea
Projects
None yet
Development

No branches or pull requests

3 participants