fredokun / cl-jupyter

An enhanced interactive Shell for Common Lisp (based on the Jupyter protocol)
BSD 2-Clause "Simplified" License
199 stars 29 forks source link

Adding inspect_request handling #33

Open bendudson opened 6 years ago

bendudson commented 6 years ago

Opening this for comments and suggestions, not yet ready for merging. I'm fairly new to Common Lisp, so feedback on ways to improve this welcome.

Typing Shift-Tab with the cursor inside a form should pop up a tooltip containing the output of DESCRIBE on the function. The aim is to mimic a feature of SLIME which I find very useful: displaying the function arguments, highlighting where the cursor is in the argument list. For example if the cursor is at the '|' (+ 1 2 val| ) => output of (describe '+) not (describe 'val)

Getting the argument list for a given function seems to be implementation specific, but SWANK must have the code to do it.

fredokun commented 6 years ago

Sorry for the delay, I have to find some spare time to try the completions before merging... This will happen soon.

drmeister commented 6 years ago

It looks like we have some competing implementations for Shift-Tab completion. Whatever ends up in cl-jupyter - it should display lambda lists for functions.