-
Notifications
You must be signed in to change notification settings - Fork 312
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
configuration: allow tab
to insert spaces at the end of a line
#2378
Comments
I think this is more of a feature request - as I can see both being preferences. Do you use a formatter? Does your formatter handle this (or undo this)? |
Actually this might be a bug - seems like the tab logic is being intercepted by: marimo/frontend/src/core/codemirror/cm.ts Lines 97 to 109 in 33d862b
cc @akshayka |
Is a completion accidentally being triggered? EDIT: okay I think I understand. I can take a look. |
@jydiw - there was a bug in the existing code, which i have fixed here: #2394 The logic is still:
Is this ok for your use-case? If you are trying to insert the tab/spaces between you code and an inline-comment, this would work. But if you are trying to add a tab at the end of the line, this won't solve that case. Do you still hope for this to be configurable for that case? |
Sorry @jydiw - scratch what I saw. I think we plan on keeping Tab as completion anywhere in the line (not just the end). So we can keep this as a FR to make it configurable. |
tab
to insert spaces at the end of a linetab
to insert spaces at the end of a line
I am coming from VSCode so perhaps this request is only because of what I am used to. Its behavior is slightly different than what you describe:
|
Describe the bug
Apologies in advance if this is better highlighted as a feature request.
I would like the ability to enter
tab
to insert and align spaces after a line, as in the case of formatting inline comments:Environment
Code to reproduce
No response
The text was updated successfully, but these errors were encountered: