-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Phantoms] Layout Above request #4469
Comments
I assume you mean |
Heh, yup thanks for that! Fixed |
No, that makes the phantom behave oddly in case the buffer is modified in that region. |
and it doesn't help for the use case of a phantom above the first line ;) |
This is true, I guess there is no proper alternative at the moment |
Problem description
Currently Sublime implementation of Phantoms support various layout formats.
sublime.LAYOUT_INLINE
sublime.LAYOUT_BELOW
sublime.LAYOUT_BLOCK
There should be however a
sublime.LAYOUT_ABOVE
option as well. Currently this can be achieved by getting the current line and subtracting 1 to get the previous line. And inserting the phantom that way.Preferred solution
Add a
sublime.LAYOUT_ABOVE
position flagAlternatives
No suitable alternatives
The text was updated successfully, but these errors were encountered: