-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inspector: introduce o
, :
keybindings
#3586
Conversation
u
keybinding which performs cider-open-url-at-point
u
, r
keybindings
@bbatsov I slightly broadened the scope of this PR. |
| `cider-open-url-at-point` | ||
| Opens the url at point if found. | ||
|
||
| kbd:[r] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you can use :
for that, as it'd be closer to the cider-mode keybinding for reading an expression from the minibuffer.
cider-inspector.el
Outdated
@@ -89,13 +89,20 @@ by clicking or navigating to them by other means." | |||
"\\|[+-.0-9]+") ; nor numbers. Note: BigInts, ratios etc. are interesting | |||
"Regexp of uninteresting and skippable values.") | |||
|
|||
(defun cider-open-url-at-point () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commands in the inspector should be starting with cider-inspector-
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a more general note - probably it'd be better to have a single "open" command that just tries a few options. (e.g. file, url, etc).
u
, r
keybindingso
, r
keybindings
o
, r
keybindingso
, :
keybindings
d9363de
to
e443115
Compare
:
keybinding which performscider-inspect-expr
Now the inspector can also double as a REPL 😄
o
keybinding which performscider-open-url-at-point
It's relatively common to inspect objects that contain a URL in it.
o
now can open those in the browser.