This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-08
Channels
- # architecture (20)
- # beginners (140)
- # cider (155)
- # cljsjs (1)
- # cljsrn (29)
- # clojure (53)
- # clojure-dev (9)
- # clojure-italy (40)
- # clojure-nl (13)
- # clojure-poland (4)
- # clojure-russia (8)
- # clojure-uk (51)
- # clojurescript (74)
- # cursive (36)
- # data-science (1)
- # datomic (3)
- # emacs (14)
- # fulcro (11)
- # graphql (2)
- # java (21)
- # javascript (2)
- # jobs (3)
- # nrepl (7)
- # off-topic (18)
- # om-next (1)
- # onyx (9)
- # portkey (8)
- # re-frame (72)
- # reagent (64)
- # reitit (4)
- # remote-jobs (1)
- # rum (1)
- # schema (1)
- # shadow-cljs (49)
- # slack-help (1)
- # spacemacs (8)
- # specter (7)
- # tools-deps (27)
- # vim (28)
Here is a dumb, extremely useful thing:
function! FlashCursor()
set cul cuc
redraw
sleep 50m
set nocul nocuc
endfunction
nnoremap <silent> <CR> :<C-U>call FlashCursor()<CR>
My practice has been jkjkjkjkjk and look for the cursor. It often doesn't work on my bigger monitor.
@fatihict I'm glad you like it! I have a local version which only searches the current project, I'm rather happy with it, just figuring out how to expose the interface!
I also have a version which only lists tests, and I have some ideas about how you can create a filtered list of tests using regex, metadata, etc. and then test just those N tests.
@fatihict Sorry, what I meant to ask was, would you find a project-only version useful too? I think I would, but I'm not sure how idiosyncratic my usage is.
It's faster, but not that much. Most of the time is spent loading it into fzf rather than generating the list.
diff --git a/autoload/replant/generate.vim b/autoload/replant/generate.vim
index 6cd19a6..17b01c3 100644
--- a/autoload/replant/generate.vim
+++ b/autoload/replant/generate.vim
@@ -88,7 +88,7 @@ fun! replant#generate#test_stacktrace(ns,var,index)
endf
fun! replant#generate#apropos_all()
- return {'op': 'apropos', 'ns': fireplace#ns(), 'doc?': 1, 'privates?': 1, 'query': '.*'}
+ return {'op': 'apropos', 'ns': fireplace#ns(), 'doc?': 1, 'var-query': {'ns-query': {'project?': 1, 'load-project-ns?': 1}, 'search': '.*', 'private?': 1}}
endf
fun! replant#generate#jump_to_source_full_symbol(full_symbol)
Should apply cleanly. Only works with cider-nrepl 0.17The part I'm really struggling with here is that I need a good interface to expose several facets of functionality that's available: - privates y/n - project only y/n - tests y/n - current ns only y/n - with/without certain metadata y/n