Commit graph

210 commits

Author SHA1 Message Date
Eric Danan
96f69f8217 cp-grep, cp-ag, cp-rg: support kept directories
Also support globally ignored file suffixes.

Separate out `counsel-projectile-git-grep` from
`counsel-projectile-grep` and give it a key binding.
2018-08-22 02:04:23 +02:00
Eric Danan
6b69bbf621 Revert "cp-ag, cp-rg: don't respect VCS ignore files"
This reverts commit ffc342bb7c.
2018-08-21 09:43:26 +02:00
Eric Danan
ffc342bb7c cp-ag, cp-rg: don't respect VCS ignore files
Projectile already parses these files to find project ignored files
and directories. Asking ag or rg to parse them prevents project
unignored files and directories to be searched.
2018-08-17 17:22:15 +02:00
Eric Danan
acc0290de7 Revert "cp-rg: search globally unignored files and dirs"
This reverts commit 1e015c5378.
2018-08-17 16:23:50 +02:00
Eric Danan
1e015c5378 cp-rg: search globally unignored files and dirs 2018-08-16 23:26:19 +02:00
Eric Danan
caf0973939 Use * in outline headings 2018-08-15 23:18:30 +02:00
Eric Danan
ab400743e6 cp-find-file-dwim: Add 2018-08-15 16:20:29 +02:00
Eric Danan
842a105af4 README: fix typos 2018-08-15 15:20:57 +02:00
Eric Danan
ff902d5cda cp-rg: remap from projectile-ripgrep 2018-08-15 15:11:47 +02:00
Eric Danan
1ead66f3de bump projectile version requirement 2018-08-15 15:06:28 +02:00
Eric Danan
7b0cdbb0ad README: document breaking change wrt counsel-projectile keymaps 2018-08-15 15:03:50 +02:00
Eric Danan
b1484297c3 cp-mode: use native projectile keymaps 2018-08-15 14:22:22 +02:00
Eric Danan
a091875789 cp-org-agenda: add requier and fix for cp-switch-project 2018-08-01 01:05:14 +02:00
Eric Danan
3aa0d8c1b1 README: fix typo 2018-07-18 17:50:32 +02:00
Eric Danan
6ffcf45767 cp-org-capture: offer both project-specific and regular templates
The regular templates determined by the variables
`org-capture-templates` and `org-capture-templates-contexts` are now
added to the project-specific templates. If not inside a project, the
project templates are ignored. Thus `counsel-projectile-org-capture`
can now systematically be used instead of `org-capture` or `counsel-org-capture`.
2018-07-18 17:42:46 +02:00
Eric Danan
2bb5aab9e8 cp-find-dir: Add display transformer 2018-07-18 16:28:11 +02:00
Eric Danan
390fe57b04 cp-org-agenda: Add 2018-07-17 23:20:31 +02:00
Eric Danan
7751773cb2 cp-grep: Update following upstream change in counsel-more-chars 2018-07-17 15:26:59 +02:00
Eric Danan
9c350a9c0f cp-find-dir: fix typo in "open as root" action fn 2018-07-17 15:21:32 +02:00
Eric Danan
12e5293fce cp-org-capture: Update docstring 2018-07-16 14:20:58 +02:00
Eric Danan
162f99881a cp-org-capture: fix when used as switch-project action
Make sure `counsel-org-capture' is called from the initial buffer (the
one from which we called `counsel-projectile-switch-project') rather
than the switch-project buffer.
2018-07-13 11:28:32 +02:00
Eric Danan
5aa8a0bc8e cp-find-dir: Add actions to visit dir externally / as root 2018-06-21 16:55:53 +02:00
Eric Danan
9660cf8434 cp-find-dir: Use the correct function for "current window" action
Fixes #88
2018-06-16 21:18:18 +02:00
Eric Danan
c752c843ef Rewrite sorting mechanism
See the "Sorting candidates" section of the README.
2018-06-09 23:12:51 +02:00
Eric Danan
8f85a392d8 counsel-projectile, cp-switch-to-buffer: fix default sorting
When the collection is a function, it is this function that must be
added to `ivy-sort-functions-alist`. Adding the caller instead has no
effect.

Note that at the moment, sorting may not work correctly if the default
is changed, due to an issue in ivy with sorting with collection
functions. See abo-abo/swiper/pull/1592.
2018-05-27 22:28:12 +02:00
Eric Danan
a95ef966ae cp-switch-to-buffer: enable alternative transformers
In particular, the ivy-rich package modifies the transformer for `ivy-switch-to-buffer'.
2018-05-02 22:25:15 +02:00
Eric Danan
d428d08015 Add action to kill buffer 2018-03-17 00:08:06 +01:00
Kelsey Zapata
bf98fbd198 fix(elisp): use cl-caddr instead of caddr
Current emacs (25.3 on fedora at least) does not define the alias
anymore, replace it with a symbol that is still available on both old
and new versions!
2018-02-18 20:49:23 +13:00
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
Manuel Uberti
b57e2dd917 Fix code snippet
Minor formatting issue in README
2018-02-04 16:00:14 +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
Eric Danan
812176d681 Update readme 2018-02-04 13:54:19 +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
4d78ae8c90 Update README 2018-01-05 17:03:24 +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