Skip to content
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

Merged
merged 4 commits into from
Nov 21, 2023
Merged

Inspector: introduce o, : keybindings #3586

merged 4 commits into from
Nov 21, 2023

Conversation

vemv
Copy link
Member

@vemv vemv commented Nov 15, 2023

  • Inspector: introduce : keybinding which performs cider-inspect-expr

Now the inspector can also double as a REPL 😄

  • Inspector: introduce o keybinding which performs cider-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.

@vemv vemv requested a review from bbatsov November 15, 2023 09:10
@vemv vemv changed the title Inspector: introduce u keybinding which performs cider-open-url-at-point Inspector: introduce u, r keybindings Nov 16, 2023
@vemv
Copy link
Member Author

vemv commented Nov 16, 2023

@bbatsov I slightly broadened the scope of this PR.

| `cider-open-url-at-point`
| Opens the url at point if found.

| kbd:[r]
Copy link
Member

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.

@@ -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 ()
Copy link
Member

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-.

Copy link
Member

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).

@vemv vemv changed the title Inspector: introduce u, r keybindings Inspector: introduce o, r keybindings Nov 21, 2023
@vemv vemv changed the title Inspector: introduce o, r keybindings Inspector: introduce o, : keybindings Nov 21, 2023
@vemv vemv merged commit e5e745b into master Nov 21, 2023
35 checks passed
@vemv vemv deleted the inspector-open-url branch November 21, 2023 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants