joaotavora / sly

Sylvester the Cat's Common Lisp IDE
1.23k stars 139 forks source link

Request: capture full `#p"..."` when running `sly-inspect` #645

Open fosskers opened 2 weeks ago

fosskers commented 2 weeks ago

If the cursor is passed a sexp and sly-inspect is called, it reads backwards, we're shown a brief highlight of the captured text, and that text is warped to the input prompt at the bottom of the screen.

For a cons cell, the entire thing is captured:

'(a . b)

^^^ all of '(a . b) appears in the prompt. However, for pathname literals, the detection cuts off at the left quote, such that for:

#p"/foo/bar/baz.txt"

only "/foo/bar/baz.txt" appears in the prompt. If #p is added back manually into the prompt, then it interprets the pathname properly.