atom-language-idris icon indicating copy to clipboard operation
atom-language-idris copied to clipboard

Right click for case split/add definition/etc?

Open edwinb opened this issue 10 years ago • 2 comments

I'm not sure if this is easy or even possible in atom, but it might be nice to be able to do a case split or add definition by right clicking on a name, as well as using the keyboard shortcuts. I see there is "docs for" in the right-click menu so maybe it can be done.

I wouldn't expect most users to use this much, but it could at least help with discovery of features when new users are experimenting, and if anyone forgets a keyboard shortcut.

edwinb avatar Oct 31 '15 16:10 edwinb

Hello

it is somewhat possible. As far as I can tell there is no whay of knowing where someone did the rightclick. I can read where the cursor is, but it could be at a different position than the rightclick. So the "docs for" command in the right click menu doesn't exactly do what I would expect.

In the main menu under Packages -> Idris there is another menu. I could add all the commands there. That would probably help a bit.

archaeron avatar Nov 08 '15 20:11 archaeron

FYI, the ide-haskell package does this via the context menu as well as the menu bar. You also can get the mouse position or cursor position at any time, though I don't remember how off the top of my head.

altaic avatar Nov 20 '15 03:11 altaic