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

Keyboard shortcut to move the cursor to the end of a sexp or data structure #72

Open
gustavo-gneto opened this issue Mar 12, 2025 · 4 comments
Labels

Comments

@gustavo-gneto
Copy link

Is your feature request related to a problem? Please describe.
Not problem-related, it is simply a new shortcut to enhance development productivity. In some cases, when there are multiple sexp's or structres (e.g. nested maps), it can get tricky to manually select the form you are looking for. This shortcut would enable users to select a whole form just by placing the cursor at the opening symbol of it (parenthesis, brackets etc...).

Describe the solution you'd like
A clear and concise description of what you want to happen.
A keyboard shortcut to move the cursor to the end of a sexp, or data structure.
Example: place the cursor at the opening parenthesis of a sexp and then hitting the shortcut to move it to the closing parenthesis (same for maps, vectors, lists etc...).

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Not sure if this fits into the "alternative" category, but this very feature is available in Cursive.

Additional context
Add any other context or screenshots about the feature request here.

@gustavo-gneto gustavo-gneto added the enhancement New feature or request label Mar 12, 2025
@ericdallo
Copy link
Member

@gustavo-gneto I think what you want is the paredit forward-up action, we would need to implement in clojure-lsp first.

@ericdallo ericdallo added the depends on server Depends on a implementation in clojure-lsp itself label Mar 14, 2025
@gustavo-gneto
Copy link
Author

@ericdallo it is actually the Forward Sexp action (sorry if my description was inaccurate). Just confirmed it on Calva (vs code).

Image

@ericdallo
Copy link
Member

@gustavo-gneto this is done on clojure-lsp and this plugin, but we need to wait clojure-lsp release which I should do soon.
There are now the forward and forward-select actions

@ericdallo ericdallo added waiting-for-server-release and removed depends on server Depends on a implementation in clojure-lsp itself labels Mar 17, 2025
@gustavo-gneto
Copy link
Author

Awesome @ericdallo! I'll keep an eye on the upcoming releases then! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants