cider icon indicating copy to clipboard operation
cider copied to clipboard

Add mouse-over and right-click support to symbols

Open Malabarba opened this issue 9 years ago • 7 comments

When the user hovers the mouse pointer over a symbol, we could show info such as

  1. relevant metadata,
  2. Is it a local, a Var from this namespace, or a Var from another namespace?

On right-click, we could offer all operations that act on symbols (find source, documentation, etc).

Malabarba avatar Feb 13 '16 14:02 Malabarba

Excellent idea! A few times users have discussed with me that CIDER is not mouse-friendly (and many newcomers are not exactly Emacs ninjas...).

bbatsov avatar Feb 13 '16 18:02 bbatsov

I'd like to try this. I'll submit a PR soon. Also, is there something else to be done for which there's no issue filed yet ? Like the docstring thing ? I really enjoyed doing that. Otherwise for the next few days, I'm gonna try and take up issues tagged with the 0.13 milestone.

ckoparkar avatar May 24 '16 03:05 ckoparkar

Nothing in particular comes to mind, but there's always something else to be done. :-)

As for the current feature. The idea is to add a few (2 or 3) submenus inside the right-click menu listing all operations that act on a symbol-at-point. Feel free to tackle it. 👍🙏

Malabarba avatar May 24 '16 06:05 Malabarba

I couldn't work on this for the last two days. The PR should be ready by tomorrow.

ckoparkar avatar May 26 '16 06:05 ckoparkar

@cskksc Any progress here?

bbatsov avatar Oct 06 '16 11:10 bbatsov

@bbastov I had forgotten about this one. Ever since I've started taking classes at the university again, I'm not getting as much time to work on CIDER as I would like. I'll try to take this up next week :-)

ckoparkar avatar Oct 07 '16 12:10 ckoparkar

Another idea along the same lines: ctrl+clicking on a var could take you to its definition. This is a common pattern in other ides.

Ramblurr avatar Feb 19 '21 11:02 Ramblurr

I'm going to close this one simply because the years kept passing.

PRs certainly welcome.

Anyone can take a look at cider*.el - there should be plenty of APIs that a motivated user can leverage.

vemv avatar Aug 21 '23 03:08 vemv