Tim Pope
cf094f970f
Retrieve ns for arbitrary buffer
2014-01-11 17:48:04 -05:00
Tim Pope
56d667b7d5
Allow retrieving client for arbitrary buffer
...
Currently, only the one-off client is fully decoupled.
2014-01-11 17:48:04 -05:00
Tim Pope
fc0ab71587
Generalize call and add message abstraction
2014-01-10 13:30:32 -05:00
Tim Pope
28a6c2c262
Fix cpp on closing bracket
...
Closes #122 .
2014-01-09 14:32:16 -05:00
Tim Pope
382869c6c7
Convenience function for nrepl call
...
This is mainly for my own debugging, but might evolve in to a real API.
I'm not sure if it's the right place to do a require.
2014-01-09 00:52:25 -05:00
Tim Pope
18d60a3fa5
Allow calling findresource with custom path
2014-01-08 20:05:46 -05:00
Tim Pope
1f3f36505e
Unify :Eval and cpp
...
Now both operations select the exact outermost form use load-file for
proper file/line metadata.
2014-01-08 01:36:39 -05:00
Tim Pope
023c8573ab
Default to sending session id
2014-01-07 20:01:33 -05:00
Tim Pope
1b2e58db97
Allow debugging connection failures
2014-01-07 14:07:08 -05:00
Tim Pope
9664516d5f
So many missing aborts
2014-01-06 22:58:43 -05:00
Tim Pope
fa4e0ed143
Fix debugging statement
2014-01-06 22:35:42 -05:00
Tim Pope
bb84d556bc
Fix :Connect with argument
...
References #120 .
2014-01-06 12:49:12 -05:00
Tim Pope
7277fc4e6d
Fix :Connect with no arguments
...
Closes #120 .
2014-01-06 11:38:50 -05:00
Tim Pope
9aa2071b17
Allow overriding buffer namespace
2014-01-01 17:15:35 -05:00
Tim Pope
973014a626
Encapsulate user ns
2014-01-01 13:35:33 -05:00
Tim Pope
90692edc35
Different gross hack for extracting backtrace
...
Now instead of wrapping the code up in a try/catch, we just use a series
of evals to grab *e and then restore *1/*2/*3.
2013-12-31 20:04:33 -05:00
Tim Pope
cd3bf333bf
Use nrepl load-file for :[range]Eval
...
Closes #83 .
2013-12-30 14:20:07 -05:00
Tim Pope
d3f7f2cf26
Change cpp from innermost to outermost
...
Closes #116 .
2013-12-26 11:21:20 -05:00
Tim Pope
f1b8096b3f
Merge pull request #108 from actionshrimp/last-err
...
Include compilation errors in s:history for :Last
2013-10-23 21:25:53 -07:00
Dave Aitken
b57c21c29b
Include compilation errors in s:history for :Last
...
If the repl doesn't return a value due to an error during compilation
(EOF due to missing bracket, unrecognised symbol), the response has no
value and as a result is not added to the history. However it's useful
to add it so it can be inspected with :Last to aid with fixing the issue.
2013-10-17 20:06:54 +01:00
Jace Bennett
740ca20ff1
As of Leiningen 2.3.2 there is yet another portfile convention
2013-08-20 23:49:40 -04:00
Joshua Davey
4db39ee484
Search for repl-port file in common places
...
As of Leiningen 2.3, different profiles activate different target
sub-directories. In the case of the repl, that means the repl-port file
is now located at target/repl/repl-port.
2013-08-14 14:19:16 -05:00
Aaron Miller
0127e5fc54
Fully macroexpand using macroexpand-all
2013-08-06 01:43:19 -04:00
Joshua Davey
235a4ec3e8
Make alternates function public
2013-08-06 01:43:19 -04:00
Tim Pope
8f925c9342
Merge pull request #71 from rasmusto/fugitive-integration
...
handle "fugitive:.*" file in s:repl.includes_file
2013-08-01 21:50:34 -07:00
Chris Ford
4490d2a882
Macroexpand motions
...
Bind cm{motion} to full macro expansion of the form described by
the motion (using clojure.core/macroexpand), and bind c1m{motion}
to partial macro expansion of the form described by the motion
(using clojure.core/macroexpand-1).
cmm and c1mm will apply the expansion to the form under the cursor.
2013-07-23 18:18:31 -04:00
Torben Rasmussen
34e0d0c964
handle "fugitive:.*" files in s:repl.includes_file
...
When sending code to the repl from a fugitive :Gd
or :Ge, remove the "fugitive://" prefix, and
"/.git/<rev number>/" path from the buffer name.
This allows for evaluation of code from previous
revisions of a file when inside of a fugitive :Gdiff
or :Gedit window.
2013-04-27 12:23:41 -07:00
Tim Pope
4f6b8e5237
Don't auto-open location list
...
Closes #48 .
2013-04-19 16:47:53 -04:00
Tim Pope
7984a4c260
Fix cryptic error on :Connect
2013-04-19 16:47:37 -04:00
Tim Pope
55255578bb
Cease deleting stale port files
...
The Leiningen 2 prereleases liked to leave stale port files behind, but
this is fixed in the final release.
2013-04-18 11:12:49 -04:00
Jacek Lach
5aa33b2cca
Handle single keyword metadata on namespace name
...
I.e. (ns ^:integration my-namespace)
2013-04-10 22:37:31 -04:00
Tim Pope
21d5c81eab
Clean up require errors on gf and ]d
2013-04-10 22:34:28 -04:00
Tim Pope
83ce4440ae
Take away cpR
...
@cemerick says I should take away all the reloading and just support
load-file, but I'm starting with the most egregious offender.
2013-04-04 13:49:11 -04:00
Tim Pope
1b92e0a7dd
Fix global setting of 'nomodifiable'
...
It doesn't make sense that we have to do this, as 'nomodifiable' is
documented as being buffer local.
Closes #58 .
2013-04-01 13:09:19 -04:00
Tim Pope
db27257f7f
Rename foreplay.vim to fireplace.vim
2013-03-13 19:56:13 -04:00
Tim Pope
fa6e35bc19
Remove old vendored classpath.vim
2013-03-13 19:49:03 -04:00
Tim Pope
c1c3f9e917
Typo fix
2013-03-12 16:06:05 -04:00
Tim Pope
699dff447f
Better representation of require errors
...
Should help with #56 .
2013-03-06 17:15:57 -05:00
Tim Pope
5b57f37802
Allow non-interactive :Connect
...
Closes #46 .
2013-02-14 00:12:45 -05:00
Tim Pope
8d253a9fdf
Support speclj in :A
...
Closes #45 .
2013-02-13 18:31:13 -05:00
Tim Pope
873623df59
Fix spacing in error
2013-02-13 12:58:50 -05:00
Dave Ray
7d47c7ec4c
Qualify clojure.core symbols
...
I was having problems with the raw use of list in the :Doc command as
well as require in :Require. Fully qualifying them fixes the issue.
2013-02-12 19:53:22 -08:00
Tim Pope
8c0eae19ab
Gather escaping functions
2013-02-10 13:30:26 -05:00
Tim Pope
9749177034
Don't assume src/ in Leiningen projects
...
Fun fact: it's impossible to reliably predict whether a given
project.clj is a Leiningen project file or not.
Closes #51 .
2013-02-10 11:48:48 -05:00
Tim Pope
eff7bcec61
Rename functions again
2013-02-08 12:14:58 -05:00
Tim Pope
a1068949b1
Support booleans in foreplay#evalparse
2013-02-08 10:26:14 -05:00
Tim Pope
a6012b5032
Rename foreplay#eval to foreplay#eval_pr_str
...
Goal is to rename foreplay#evalparse to foreplay#eval.
2013-02-08 00:35:15 -05:00
Tim Pope
b94a694254
Rename foreplay#evalprint to foreplay#eval_prn
2013-02-08 00:34:13 -05:00
Tim Pope
105b01d7d0
Provide :Last
...
Closes #7 .
2013-01-29 19:15:21 -05:00
Tim Pope
d2bc102487
Alternate between test and implementation
...
Closes #33 .
2013-01-25 12:27:03 -05:00
Tim Pope
f653f18e64
Fix gf when file hasn't been required yet
...
Closes #44 .
2013-01-25 11:22:10 -05:00
Jacek Lach
511a123421
Decode paths for aliased namespaces.
2013-01-25 15:09:04 +00:00
Tim Pope
53201c89de
Fix recognition of REPL disconnection
2013-01-24 16:38:00 -05:00
Tim Pope
7ff2191a30
Automatically open location list on exception
...
Closes #39 .
2013-01-23 22:23:42 -05:00
Tim Pope
c0bdf9b971
Fix decoding URLs
2013-01-19 23:06:57 -05:00
Tim Pope
a80ff87f94
Better handling of resource paths on Windows
...
References #40 .
2013-01-19 23:01:53 -05:00
Tim Pope
274c4da054
Apply fnameescape() to source location
...
References #40 .
2013-01-19 16:32:57 -05:00
Paul deGrandis
da70e71023
Fixed a typo bug; gd in new tab
2013-01-19 12:33:44 -08:00
Tim Pope
f4e9f1c10a
Use namespaces in critical path
2013-01-16 01:01:09 -05:00
Tim Pope
aed21575b8
Fix stack trace parsing with "Unknown Source"
...
Closes #37 .
2013-01-15 21:35:40 -05:00
Tim Pope
123bea5850
Fix stack trace parsing with one-off runner
2013-01-15 21:34:41 -05:00
Tim Pope
6f93e99ede
Strip all carriage returns out of output
...
Closes #38 .
2013-01-15 20:17:59 -05:00
Tim Pope
fbd8a0844a
OCD
2013-01-15 20:04:46 -05:00
Tim Pope
1db6dbed3f
Cache executable('zipinfo') for speed on Windows
...
Closes #36 .
2013-01-15 19:17:55 -05:00
Tim Pope
879443c846
Fewer explosions when gf goes wrong
2013-01-13 10:28:25 -05:00
Tim Pope
058da0d71c
Account for long ns doc strings
2013-01-09 00:07:24 -05:00
Tim Pope
fbfc6e09b4
Load stack traces into location list.
...
Closes #20 .
2013-01-07 22:41:04 -05:00
Tim Pope
84168b7c5e
Monkey patch to support zip files in quickfix
2013-01-07 22:32:57 -05:00
Tim Pope
be964782b8
Remove half baked crap
2013-01-07 01:55:08 -05:00
Tim Pope
0ff9cd710d
Tighten error handling of lein autoconnect
...
Fixes #28 .
2013-01-06 23:18:15 -05:00
Tim Pope
3ee902f648
Fix one-off runner
...
Closes #29 .
2013-01-06 20:54:42 -05:00
Tim Pope
4c60151330
Bring $JAVA_CMD inline
2013-01-06 19:53:37 -05:00
Tim Pope
8ad87d4fba
Remove specialized shell escape function
...
The cases this was guarding against aren't actually relevant any more.
2013-01-06 19:04:06 -05:00
Tim Pope
fe8277b42f
Extract classpath.vim to a separate plugin
...
Keeping it in the repository, for now. Disable it with
let g:no_foreplay_classpath = 1
This eliminates the startup delay at the cost of requiring a REPL to
evaluate code.
References #3 .
2013-01-06 18:00:06 -05:00
Tim Pope
f4a1c5a5fe
Fix jump to top of file after cqp
2013-01-05 19:54:30 -05:00
Tim Pope
fbc0c54548
Provide and use foreplay#evalprint()
...
This provides a central point for alternate output methods, such as
capturing to a buffer.
In support of #7 .
2013-01-05 00:08:36 -05:00
Tim Pope
e62540fef9
Separate user from system evals
...
This keeps the user's session clean by not using it for things the user
did not directly dispatch (such as omnicomplete). On the fence but
currently included in the user session is commands like :Doc.
2013-01-05 00:08:32 -05:00
Tim Pope
39d1e296cf
Defend against broken g:FOREPLAY_HISTORY
...
Closes #26 .
2013-01-04 09:35:32 -05:00
Tim Pope
3ff1633daa
Make client responsible for knowing class path
2013-01-03 19:10:38 -05:00
Tim Pope
3fa8d8396f
Better extraction of ns form
...
Goal: not require class path at all.
2013-01-03 18:45:30 -05:00
Tim Pope
1d51636fa1
Enforce viminfo+=!
...
Hypothesis: people complaining about startup time aren't even trying
this.
2013-01-03 13:11:15 -05:00
Tim Pope
77c0166262
Add <Plug> maps for everything
2013-01-03 00:10:11 -05:00
Tim Pope
1fa30f77eb
Don't rely on iskeyword to determine namespace
...
Workaround for #24 and #25 .
2013-01-02 19:09:53 -05:00
Tim Pope
5e0d266ae4
Catch more connection errors
2013-01-01 20:15:02 -05:00
Tim Pope
5213b65b97
Fix :Apropos
2013-01-01 20:09:16 -05:00
Tim Pope
8757e41cf3
Fix potential \r in Windows target/repl-port file
2013-01-01 20:06:14 -05:00
Tim Pope
a31c98c9ef
Properly escape temp paths on Windows
...
This was leading to a cryptic error message referencing \U (as in
"C:\Users"). Addresses half of #22 .
2012-12-31 19:54:46 -05:00
Tim Pope
23ecbe5649
Don't look up Compojure's GET with javadoc
...
Closes #21 .
2012-12-29 11:26:24 -05:00
Tim Pope
9551798f7d
Capture stack trace in one off runner
2012-12-26 10:17:31 -05:00
Tim Pope
9a2891dc31
Revert "Added fuzzy omnicompletion."
...
This reverts commit fb9b128287
.
2012-12-26 10:17:31 -05:00
Tim Pope
1de922423f
Fix error handling of one-off runner
2012-12-25 20:28:13 -05:00
Tim Pope
811a514bed
Cache jar contents
2012-12-25 20:25:53 -05:00
Tim Pope
742f23e0b9
Further fixes to doc macro dispatching
2012-12-25 20:25:50 -05:00
Tim Pope
0db6f6fb51
Fix grammar
2012-12-25 12:04:07 -05:00
Tim Pope
047932304c
Fix javadoc
2012-12-25 11:56:59 -05:00
Tim Pope
c8eaf2f2ad
Prefer ns declaration to position in class path
2012-12-25 11:56:51 -05:00
David Greenberg
fb9b128287
Added fuzzy omnicompletion.
...
This allows Clojure namespaces, vars, and aliases to be fuzzily
completed. It does not handle Java classes or packages.
2012-12-15 21:06:01 -05:00
Tim Pope
79c2bc0730
Look for in-ns when determining buffer namespace
...
Closes #19 .
2012-12-15 16:26:31 -05:00
Tim Pope
0ba2be1e59
More fixes for broke stuff
2012-12-15 15:44:32 -05:00
Tim Pope
53c8e0408b
Make the previous two commits actually work
2012-12-15 15:36:50 -05:00
Tim Pope
1aa3a32fbe
Centralize output/throw from eval
...
Supports #7 .
2012-12-15 01:32:08 -05:00
Tim Pope
53bd402662
Use :Javadoc for capitalized classes with K
...
Closes #15 .
2012-12-14 19:23:34 -05:00
Tim Pope
56cd47c52e
Provide :Javadoc
...
In support of #15 .
2012-12-14 19:23:34 -05:00
Tim Pope
693de7cf45
Drop generic tab complete for :Apropos
2012-12-14 19:23:34 -05:00
Tim Pope
cef0d22aa0
Fix :Eval on opening parenthesis
...
Closes #17 .
2012-12-14 13:59:54 -05:00
Tim Pope
0f61810784
Fix top-level expr location in :Eval
...
Closes #17 .
2012-12-14 13:22:02 -05:00
Tim Pope
23fb876909
Fix output after cp on large expressions
...
The expression for cp is grabbed in visual mode, forcing the window to
shift if the entire expression doesn't fit. Fixing that is hard, so
instead lets just preemptively redraw so a scroll doesn't blow away the
output.
2012-12-10 19:52:58 -05:00
Tim Pope
aa443b8836
Refer to root for REPL as a "scope"
...
References #13 .
2012-12-10 17:32:01 -05:00
Tim Pope
f1f9276bbe
Strip trailing slash from REPL root
...
Also, use a ~ path, if possible.
References #13 .
2012-12-10 17:24:28 -05:00
Tim Pope
8b13cb2fe8
Fix use of REPL root
...
Closes #13 .
2012-12-10 14:50:00 -05:00
Tim Pope
bcaa71ae7c
Fix wrong modifier
2012-12-09 14:40:27 -05:00
Tim Pope
5179fb3402
Kill visual mode maps
...
I didn't mean to release these, just yet.
2012-12-09 14:20:19 -05:00
Tim Pope
9552ad6e23
Don't detect incorrect root on fake paths
...
For example, fugitive buffers were getting detected using the current
working directory.
2012-12-09 14:12:57 -05:00
Tim Pope
cb1ebfbc5b
Drop unnecessary use of anonymous function
2012-12-09 12:31:56 -05:00
Tim Pope
b3b3ce4bca
Add cpr/cpR maps to require.
...
In response to discussion in #4 .
2012-12-07 20:15:48 -05:00
Tim Pope
19f2f9cc28
Fix clobbering of output on cp
...
Closes #10 .
2012-12-07 19:27:24 -05:00
Tim Pope
1a036ebed1
Fix search/replace fail
2012-12-06 23:04:48 -05:00
Tim Pope
bc9d873fff
Default to user namespace
...
Closes #9 .
2012-12-06 20:44:00 -05:00
Tim Pope
8865fcbb23
Leverage classpath#split from ns completion
2012-12-05 13:16:10 -05:00
Tim Pope
17e3eeb2c6
Work around 'wildignore'
...
Closes #5 .
2012-12-05 13:12:39 -05:00
Tim Pope
1bda41a59f
Drop trailing colon in error
2012-12-05 00:06:00 -05:00
Tim Pope
0df564966f
Don't try to guess class path in jar files
...
The 'path' is copied in to jar file buffers on arrival. Don't clobber
it with the $CLASSPATH default.
2012-12-04 22:32:30 -05:00
Tim Pope
208f549664
Throw error if requiring doesn't load namespace
...
References #2 .
2012-12-04 20:28:07 -05:00
Tim Pope
7a98feb253
Try to remove comments in cq
...
This will break on strings with semicolons in them.
2012-12-04 20:18:54 -05:00
Tim Pope
ff9e3b5cd7
Initial commit
2012-12-04 01:38:17 -05:00