Comments (6)
Hi, thanks for creating the discussion!
I'm not sure I understand the use case, mind to expand?
completing-read
normally is a tool for accomplishing something else - it's not a end user intent in itself.
from cider.
@vemv very simply, I can search a Clojure symbol that is defined by name, and then select it to get documentation. With something like Ivy or Vert&co (which puts completing-read on steroids), I can fuzzy search said name. Here is a picture
By using completing-read, I can be mostly agnostic to the completion framework you use, even if you use none. (Not sure if Helm supports completing-read yet though...)
from cider.
Hmm, I can M-x cider-doc
, type "red", trigger completion, and see:
Then the following pops up:
Probably that *Completions*
buffer can be customized by users for Ivy/etc to be used instead.
Let me know if that workflow isn't sufficient to replicate what you built - we'd welcome a PR that optionally made it richer.
from cider.
A simpler workflow is typing "red", triggering autocompletion with TAB
or a similar keybinding, and letting a framework like company-mode show the doc:
from cider.
@vemv yeah, swapping out completing-read (which is what the completion frameworks do) does not change the cider-doc
, which I am guessing is using separate completion machinery?
I agree there are other ways to search, I was just trying to search in the same way I search Emacs Lisp.
from cider.
cider-doc is defined honoring a cider-prompt-for-symbol-function
defcustom, like so:
Lines 287 to 298 in 25c51fd
Note that it receives #'cider-doc-lookup
as an argument.
By customizing cider-prompt-for-symbol-function
you should have all it takes for a custom UX, with docs displayed inline.
Let us know how it works for you. I'll close the issue for now, but feel free to keep the conversation going!
We'd always welcome further customization options or perhaps, if no changes are needed, a "how to" in our user manual.
Cheers - V
from cider.
Related Issues (20)
- `[shadow-cljs]` output lost when repl-ing node http server HOT 2
- Customize banner HOT 8
- Can't cider-jack-in to projects with private git dependencies HOT 7
- `cider--error-phase-of-last-exception` can call itself when the cider-nrepl middleware is faulty HOT 3
- Lots of compilation warnings since update to Emacs 29 HOT 4
- `cider-inspector-inspect-last-exception` should inspect specific exceptions, not the last one HOT 3
- `cider-test-run-loaded-tests` not running newly loaded tests after changing REPL namespace HOT 1
- cider-log: multiline items HOT 5
- Auto completion is not reliable after switching to cider-nrepl 0.45.0 HOT 4
- i'm unable to access javadocs HOT 2
- Don't offer to connect to YourKit ports
- cider-ns: jump to file/line on errors
- cider-ns-refresh: summarize errors as an overlay
- Wrong type argument: plistp HOT 13
- Reduce the `nrepl.middleware.print/quota` for interactive eval
- Ability to auto-inspect on repl eval HOT 2
- cider-log may no longer use Logview after timezone change HOT 2
- cider-pprint-eval-defun-to-comment inside form does not print comments in newline HOT 8
- cider-find-var on lib added via clojure.repl.deps/add-libs HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cider.