-
Notifications
You must be signed in to change notification settings - Fork 2.8k
support changing tabsize of paragraph #919
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
Conversation
|
Thanks for addressing the issue. I think it'll be more useful if tab size can be configured globally or per interpreter, rater than individual paragraph. What do you think? |
|
@Leemoonsoo Good point. I agree with you that changing tab size in the interpreter or notebook is better than paragraph. so I think Configuring tab size of notebook level makes more sense than interpreter level, what do you think? |
|
I think tab size is more like per interpreter rather than notebook or paragraph. Because Does it make sense? |
|
@Leemoonsoo It really makes sense and I thought that too. |
|
@astroshim Would you then create a new PR, or modify this one? |
|
@corneadoug Thank you for your concern! I'm thinking to find right way how to handle this issue. |
|
To be able to change indention is very reasonable option, esp. as soon as you start working with Python. @astroshim It could be hard to implement per-interpreter as @Leemoonsoo suggests for now, so how about changing this implementat to per-notebook settings? I think it would be useful. My only concern is whether it actually changes the paragraph code, or not. I have checked, and Ace editor we use in soft-tab configuration (although I can not find Then, how does changing this setting affect the paragraph (that already has no |
|
@bzz Thank you for your detail review! |
|
Like comment #966 (comment) from @felixcheung, it'll be great if interpreter-setting.json can configure code-editor. For example, add "editor" field, I think this approach can be used not only for 'tabsize', but also for many other configuration values as example above. Implementing notebook level first would be an option, but if it is not very urgent issue, then it's worth to consider configure through interpreter-setting.json instead. Then many other features (syntaxHighlighting, autoCompletionOnTab, etc) can easily benefit by it. |
|
Thank you for your detailed explanation @Leemoonsoo and I agree with moving interpreter-setting.json. |
|
#1218 is better way. |
What is this PR for?
The code editor tab size is fixed as 4.
It would be better to support changing tabsize to users.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-887
How should this be tested?
Screenshots (if appropriate)
Questions: