Eric Danan
edba681cd7
cp-org-capture: correct inconsistent keybinding
2018-02-13 10:34:42 +01:00
Eric Danan
1c1e7eff06
Update copyright
2018-02-04 20:47:24 +01:00
Eric Danan
222b6ac531
cp-find-file: make matcher customizable and provide basename matcher
...
Closes #72
2018-02-04 15:50:20 +01:00
Eric Danan
e8eee886b7
Use lexical binding
2018-02-04 14:33:48 +01:00
Basil L. Contovounesios
776ab59b38
Allow users to customise candidate sort order
2018-02-04 13:35:57 +01:00
Basil L. Contovounesios
9f9b522faf
Minor logic simplification
2018-02-02 19:02:53 +00:00
Basil L. Contovounesios
b37d082297
Fix indentation according to dir-locals-file
2018-02-02 17:08:02 +00:00
Eric Danan
7817fe8895
Fix issue with counsel-projectile altering projectile-projects-cache
...
Fixes #74
2018-02-02 13:09:55 +01:00
Eric Danan
c086bc2186
Revert "Advise ivy-read-action for MELPA Stable and ELPA users"
...
This reverts commit 6da9620d7c .
Non-MELPA Stable / MELPA users can update ivy and hence don't need
this commit.
2018-01-05 15:32:02 +01:00
Eric Danan
536872f022
Add third digit to version number
2018-01-05 15:24:05 +01:00
Eric Danan
6da9620d7c
Advise ivy-read-action for MELPA Stable and ELPA users
...
For MELPA Stable and ELPA users, until the next version of ivy is
released, we need to advise `ivy-read-action' to implement
multi-character action keys. The advice only operates on
counsel-projectile commands (identified by the fact that
`ivy-state-caller' starts with \"counsel-projectile\"), so as not to
mess up with the general ivy setup.
2018-01-05 14:56:51 +01:00
Eric Danan
d482793252
Remove prefix actions
...
These actions are no longer needed since ivy now supports
multi-character action keys.
2018-01-05 09:46:11 +01:00
Eric Danan
0a63f2210d
cp-grep: no longer rely on counsel--git-dir
...
This variable was remove from counsel. Use default-directory instead
as done there.
2018-01-03 22:29:59 +01:00
Eric Danan
d68af72c9e
Fix file header
...
semicolumn was gone in first line
2017-12-27 22:15:00 +01:00
Eric Danan
2bb7f2758c
Don't depende on string-remove-prefix
...
Otherwise would need to add a dependency to emacs 24.4 (counsel and
projectile only depend on 24.3).
See #65
2017-12-27 22:11:08 +01:00
Eric Danan
2e0be045a1
Add cp-modify-action
2017-12-23 16:12:42 +01:00
Eric Danan
710daa327b
Fix a typo in cp-switch-project-action-grep
2017-12-22 21:53:08 +01:00
Eric Danan
2fc8dca257
Simplify sub-action mechanism
2017-12-22 21:48:10 +01:00
Eric Danan
323152fee7
Expand docstring of cp-org-capture-templates
2017-12-22 16:56:50 +01:00
Eric Danan
e35de664aa
bump version to 0.2
2017-12-18 21:32:53 +01:00
Eric Danan
f4d46f8aae
Minor reformatting
2017-12-18 15:56:30 +01:00
Eric Danan
21f13cd48c
cp-org-capture: set a default template
2017-12-18 14:26:35 +01:00
Eric Danan
66cf72c527
fix a docstring
2017-12-12 21:16:55 +01:00
Eric Danan
f061ae88e2
cp-switch-project: add actions to compile / configure project
2017-12-12 21:12:12 +01:00
Eric Danan
b7a154eaa5
move defcustoms in their respective sections
2017-12-12 20:51:03 +01:00
Eric Danan
da185eaabc
cp-switch-project: make action keys consistent with projectile map
2017-12-12 20:12:23 +01:00
Eric Danan
b0cce317da
bump swiper dependency version
2017-12-09 21:57:03 +01:00
Eric Danan
a4e9a34d7f
rewrite custom actions mechanism
2017-12-09 21:53:29 +01:00
Eric Danan
85b1d8bf77
homogenize function names and docstrings + misc changes
2017-12-07 23:07:27 +01:00
Eric Danan
cba24df908
change counsel-projectile toggle mechanism
2017-12-06 22:34:28 +01:00
Eric Danan
499bc4cc23
rm unnecessary calls to projectile-project-p
2017-12-04 12:39:27 +01:00
Eric Danan
e200bce2ff
add actions to open project file externally or as root
2017-12-04 12:33:25 +01:00
Eric Danan
162cdc2655
make project search functions more consistent with cp-find-file
...
Project search functions = `cp-grep', `cp-ag' `cp-rg'. The logic is
that these functions should look in the same files as `cp-find-file':
- Always ignore patterns from `.projectile' file
- No longer ignore patterns from `grep-find-ignored-files` and
`grep-find-ignored-directories'
For `cp-grep' this is not fully implemented because `grep' does not
care about `.gitignore' and `git-grep' cares only about that file.
Calling any of these three functions with a prefix arg gives full
control about the command's arguments, including ignored paths.
2017-12-01 21:24:10 +01:00
Eric Danan
e4aa44419a
allow cp-ag and cp-rg to obey .projectile file in git projects
2017-11-27 20:57:16 +01:00
Eric Danan
4e3e90a260
New command: counsel-projectile-org-capture
2017-11-25 21:04:43 +01:00
Eric Danan
5ec2118cbb
expand some docstrings
2017-11-07 23:56:08 +01:00
Eric Danan
332e4c9817
new command: counsel-projectile-grep
2017-11-07 23:52:29 +01:00
Eric Danan
293a8f2f6a
turn defvars into defcustoms
2017-11-06 14:29:48 +01:00
Eric Danan
56c0e3a521
allow to remove current buffer or project from candidates
2017-11-05 21:00:15 +01:00
Eric Danan
88a16cb753
Revert "Add preselect for switch-to-buffer ( #53 )" ( #54 )
...
This reverts commit 975020829b .
2017-10-01 15:41:50 +02:00
seudut
975020829b
Add preselect for switch-to-buffer ( #53 )
...
Thanks.
2017-10-01 15:26:51 +02:00
tummychow
b57c635ba0
Fix duplication in counsel-projectile
...
If the first file in the projectile-current-project-files is also a
buffer, it will appear twice in the counsel-projectile list. This is
fixed by reassigning the result of the delete expression to the files
list.
2017-09-22 18:26:08 -04:00
Eric Danan
20557b47a9
improve performance of `counsel-projectile'
2017-09-11 22:04:26 +02:00
Eric Danan
a754b4b4fd
cp-switch-project: rename default action
2017-09-06 21:51:13 +02:00
Eric Danan
6946882e99
cp-switch-to-buffer: rewrite actions
2017-09-06 21:45:09 +02:00
Eric Danan
48817f369f
cp-find-dir: rename actions
2017-09-06 20:13:59 +02:00
Eric Danan
d28e3b7138
cp-find-file: rewrite actions
2017-09-06 20:07:40 +02:00
Eric Danan
6db57ff445
make all action lists customizable
2017-09-06 12:49:09 +02:00
Eric Danan
fe524f7fcd
make actions and transformer functions "public"
...
avoid `--' in the function name
2017-09-06 12:24:13 +02:00
Eric Danan
c83216eba4
cp-switch-project: make action list more easily customizable
2017-09-05 22:38:12 +02:00