sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
800 stars 35 forks source link

Phantoms Support Input From the User #4041

Open ihdavids opened 3 years ago

ihdavids commented 3 years ago

Problem description

Supporting features like column view in emacs and accepting custom input from users for widgets like a date time picker would be greatly facilitated if we could accept more than simple click input form phantoms.

Preferred solution

Support buttons, input fields, images, editable tables and toggles.

Alternatives

Unknown

Additional Information (optional)

datetime_picker

ihdavids commented 3 years ago

In the example above I am using an input panel but I would love to have more a more custom solution allowing the user to move around with buttons and other UI.

ihdavids commented 3 years ago

One of the features I would really love this for is column edit mode in my Org Mode plugin. Here is an example of what I am wanting to support in emacs. About 2 minutes in the user pops into column mode where properties on the headings can be edited in a custom table tabular overlay.

https://www.youtube.com/watch?v=BfEAiWe3uvc

Editable phantoms could allow me to implement something similar. It would also allow for custom filtering on tag insertion and other dynamic elements.

rwols commented 3 years ago

Phantoms use minihtml. So if I understand correctly, you're asking for:

I'm guessing an inline phantom is supposed to resize the height of the line according to how many rows there are in a <table>?