Commit graph

209 commits

Author SHA1 Message Date
Eric Danan
21ac71e4d0 remove org-mode readme 2017-12-19 11:45:17 +01:00
Eric Danan
828579f784 readme: add toc 2017-12-19 11:44:29 +01:00
Eric Danan
a910116025 readme: fix typos 2017-12-19 11:12:38 +01:00
Eric Danan
774c7a7cb1 convert readme to github flavored markdown
with proper formatting for tables and internal links (hopefully)
2017-12-19 11:02:11 +01:00
Eric Danan
c5575d979d rm markdown readme
has problems with tables
2017-12-18 22:25:25 +01:00
Eric Danan
d6ca81fa17 convert readme to markdown
org version seems to have problems with links...
2017-12-18 22:19:44 +01:00
Eric Danan
8e0d430082 readme: add num option 2017-12-18 22:10:31 +01:00
Eric Danan
3b451c5c71 readme: add spacing 2017-12-18 22:06:17 +01:00
Eric Danan
7b5104489c try to improve readme layout 2017-12-18 21:52:46 +01:00
Eric Danan
f0c867bc92 update readme 2017-12-18 21:33:29 +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
e399476439 convert readme to org 2017-12-09 21:58:04 +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
Eric Danan
94a8f753e0 improve some docstrings
Fix #50
2017-09-05 21:15:19 +02:00
Eric Danan
cc32e2055a use a different mechanism to switch project
Use the newly defined `counsel-projectile-switch-project-by-name`
instead of `projectile-switch-project-by-name`.
Fix #48
Fix #39
Fix #32
Fix #24
2017-09-05 12:30:21 +02:00
Eric Danan
363c875df6 move cp-unvisited-file-list to relevant section 2017-08-16 11:00:37 +02:00
ambihelical
2a46d758f7 Improve counsel-projectile-find-file performance
Current code will show significant lag for projects with large numbers
of files.  Tests with 400K files shows 15-20s lag for
counsel-projectile-find-file.  Profiling showed that this was
due to the preprocessing of projectile-current-project-files to add
'ivy-virtual face to files not already in a buffer.  To fix this,
a display transformer was added for this command so that the face
modification was applied only to at most ivy-height files.

The preprocessed file list was also used by counsel-projectile
code paths, so some additional modifications were made to ensure
that that code path does not change behavior.  Any similar issues in
counsel-projectile performance was not addressed in this commit.

Details:

* move 'ivy-virtual face change to a display transformer function
* use projectile-current-project-files instead of counsel-projectile--file-list
  for ivy-read.
* reduce the scope of counsel-projectile--file-list, making it return
  only unvisited files, and renaming it accordingly.  This is now only
  used indirectly by the counsel-projectile function.
* change ivy-switch-buffer-transformer to propertize files at display time.
2017-08-16 10:48:52 +02:00
Eric Danan
9e3db12005 new action in cp-switch-project to search with rg
* counsel-projectile.el (counsel-projectile-switch-project): new
  action to search with rg.

[Closes #38]
2017-08-15 13:07:49 +02:00
Eric Danan
b9950f6f0b allow initial input in cp-ag and cp-rg
* counsel-projectile.el:
(counsel-projectile-ag-initial-input): new variable
(counsel-projectile-ag): use the above var
(counsel-projectile-rg-initial-input): new variable
(counsel-projectile-rg): use the above var

[Closes #43]
2017-08-15 12:53:04 +02:00
Hans Jang
d55966f113 Fix the performance of counsel-projectile-switch-to-buffer 2017-08-14 17:27:56 +02:00
Eric Danan
575bf98179 Merge commit 'pull/origin/47' 2017-08-14 17:07:03 +02:00