Moonshine-IDE / moonshine-feathersui-text-editor

A text editor component with syntax highlighting and code intelligence features for Feathers UI
Other
7 stars 1 forks source link

Right-Click Context Menu #8

Open JoelProminic opened 2 years ago

JoelProminic commented 2 years ago

A Prominic developer pointed out that the right-click context menu is missing in the updated editor in Moonshine-IDE 3.2.0. This mostly included basic Edit menu features. image

I remember seeing some language-server features in this menu (for managing imports?) but I couldn't find this with a quick review in Moonshine 3.3.0.

I'd like to bring this menu back, since it may be more convenient for some developers.

joshtynjala commented 2 years ago

I remember seeing some language-server features in this menu (for managing imports?) but I couldn't find this with a quick review in Moonshine 3.3.0.

I don't recall any language server features getting added to this menu. In fact, I have always wanted to add some, like "Go to Definition" and "Rename Symbol", but I wasn't sure the best way to do it.

I'm going to think about the right API design for adding custom menu items before I implement anything more. For now, the built-in clipboard, select all, and delete/clear items that Flash/AIR provide natively are enabled.

joshtynjala commented 2 years ago

Just to get this in the discussion history: OpenFL doesn't currently support the ContextMenu class, so when we switch away from Adobe AIR to the C++ target, we'll need a custom context menu implementation. That can probably be done easily enough by adding a Feathers UI ListView component to the PopUpManager, though.