Commit Graph

560 Commits

Author SHA1 Message Date
Henrik Lissner
b5a279311c
Fix #2317: helm-mode-handle-completion-in-region = t
It turns out that helm can handle completing ex constructs (e.g. globs),
so this setting is no longer needed.
2020-01-07 00:14:46 -05:00
Henrik Lissner
ae8dc2749f
Remove ivy-{standard,alternative}-search #2314
Turns out ivy and counsel have a number of hard-coded checks for flx
against ivy--regex-fuzzy:

- https://github.com/abo-abo/swiper/blob/master/ivy.el#L3531
- https://github.com/abo-abo/swiper/blob/master/ivy.el#L3637
- https://github.com/abo-abo/swiper/blob/master/ivy.el#L4643
- https://github.com/abo-abo/swiper/blob/master/counsel.el#L1359
- https://github.com/abo-abo/swiper/blob/master/counsel.el#L1561

This means, by assigning our own delegates around ivy regex functions
will break flx sorting (reported in #2314), and possibly other behavior.
2020-01-06 01:38:51 -05:00
Henrik Lissner
27bf3c85b5
Generalize thing-at-point & region functions 2020-01-03 02:39:47 -05:00
Henrik Lissner
ab994627bc
Add counsel-find-file's actions to counsel-file-jump 2020-01-01 21:19:21 -05:00
Henrik Lissner
f0e05c1a44
Fix C-w in ivy not moving up directory
And ensure C-w doesn't affect kill-ring from minibuffer.
2020-01-01 19:58:52 -05:00
Henrik Lissner
d7d873e11b
Fix counsel-projectile-find-file from occur buffers #2268
counsel-projectile-find-file-action would open the candidate from wrong
buffer.

This is an experimental fix.
2019-12-31 00:04:07 -05:00
Henrik Lissner
fb261a9c65
Fix extra ivy actions for counsel-{rg,find-file} 2019-12-31 00:02:00 -05:00
Henrik Lissner
c57aff9b81
Change how +lookup/online populates initial input
If no selection is active, there is no initial input.
If selection is active, use the selection.

Also remove helm-google package, as the helm functionality is provided
by the core helm package already (and actually works).
2019-12-29 19:24:45 -05:00
Henrik Lissner
b144a3862a
Bind 'SPC h d S' to text search; expand ivy/helm file-search API 2019-12-23 01:51:43 -05:00
Henrik Lissner
6c0d71eb65
completion/ivy: reduce min-chars for counsel-search to 2
From default of 3
2019-12-20 18:33:11 -05:00
Henrik Lissner
8a080e037c
completion/ivy: general refactor 2019-12-20 14:03:35 -05:00
Henrik Lissner
52bf238b2f
completion/ivy: make counsel-search use standard url 2019-12-20 13:53:54 -05:00
Henrik Lissner
e6de13b4c9
Treat +ivy/project-search & +default/project-search as counsel-rg
This gives the former commands access to any actions (on C-o) or counsel
configuration meant for counsel-rg.
2019-12-17 23:31:10 -05:00
Henrik Lissner
defbed9ac1
completion/ivy: fix directory in project search prompt
It unhelpfully always displayed "./"
2019-12-17 23:15:26 -05:00
Henrik Lissner
cdfef48b64
completion/ivy: fix +fuzzy 2019-12-16 17:49:11 -05:00
Henrik Lissner
eaa5621b36
Update comments 2019-12-15 23:51:59 -05:00
Henrik Lissner
0001947401
completion/company: mention +tng/+childframe incompatibility in readme 2019-12-15 21:45:40 -05:00
Henrik Lissner
7095bdb7ce
completion/ivy: remove redundant counsel-find-file actions
Many of these are already upstream, but some of them are on different
keys (e.g. j instead of f for other-window).

See https://github.com/abo-abo/swiper/blob/master/counsel.el#L1864-L1875
2019-12-15 18:49:42 -05:00
Henrik Lissner
7fa4e67e39
Minor refactors 2019-12-14 20:42:55 -05:00
Henrik Lissner
87f6dab424
completion/ivy: remove unused var; update config
...to reflect our dropping ag/grep support.
2019-12-13 23:00:01 -05:00
Henrik Lissner
a24b750c6c
completion/ivy: fix ivy-re-builders-alist delegates 2019-12-13 22:49:26 -05:00
Henrik Lissner
e4477f02e3
completion/ivy: remove directory in buffer name
When switching buffers.
2019-12-12 15:11:24 -05:00
Henrik Lissner
996188250b
Minor refactors & comment revision 2019-12-06 17:16:34 -05:00
Henrik Lissner
1a4add4630
ivy-height = 20 for swiper-isearch helm users 2019-12-05 16:11:19 -05:00
Henrik Lissner
c1e3e3cc04
Fix helm-project-* override advice 2019-12-05 16:10:57 -05:00
Henrik Lissner
6facc534ce
completion/helm: replace helm-ag with helm-rg 2019-12-05 16:10:46 -05:00
Henrik Lissner
c13b8df5df
Minor refactors & reformatting 2019-12-05 14:56:16 -05:00
Henrik Lissner
7f5f23bdc5
completion/ivy: update keybinds in readme 2019-12-03 22:56:59 -05:00
Henrik Lissner
d41e4983ec
Bind '<help> t' to load-theme
And remap load-theme to counsel-load-theme.

This replaces the keybind for help-with-tutorial, but `load-theme` is
useful enough to warrant a keybind. `help-with-tutorial` is not.
2019-11-21 14:46:00 -05:00
Alois Janíček
c2d66ccdcf
ivy-posframe: ignore counsel-rg 2019-11-19 13:24:54 +01:00
Henrik Lissner
263c82def1
Remove references to old ivy/helm search commands
And consolidate ex commands into :pg[rep][!] and :pg[rep]d[!].
2019-11-18 15:06:11 -05:00
Henrik Lissner
fd979d8e52
completion/helm: fix void variable refs #2071 2019-11-18 14:17:48 -05:00
Henrik Lissner
c44185168d
completion/helm: remove +helm-project-search-engines
No longer used as of a66872fe2
2019-11-17 23:57:45 -05:00
Henrik Lissner
dca4ff7887
completion/helm: remove redundant package cookies 2019-11-17 23:43:41 -05:00
Henrik Lissner
d2092ae44e
completion/ivy: load counsel earlier
Fixes an issue where counsel was being loaded later than ivy-prescient,
which requires that it be loaded earlier.
2019-11-17 17:56:25 -05:00
Henrik Lissner
a66872fe25
Focus on ripgrep; remove ag, git-grep & grep support
We're focusing on ripgrep so we can iterate on search functionality in
Doom quicker. There is nothing the other search backends can do that
ripgrep can't. It is now a hard dependency for Doom.
2019-11-17 01:19:59 -05:00
Henrik Lissner
b7044b5f32
Fix #2064: partially revert bd4755123
A change unintentionally snuck into bd4755123.
2019-11-15 23:56:08 -05:00
Henrik Lissner
449ddb986c
Minor refactors & reformatting across the board 2019-11-15 22:17:31 -05:00
Henrik Lissner
bd4755123f
Replace */tasks commands w/ magit-todos-list
If we want ivy/helm interfaces to it, we should use magit-todos as a
backend.
2019-11-15 22:17:31 -05:00
Henrik Lissner
3d26befd47
Move 'SPC /' to 'SPC s'
/ is harder to reach than s, more so on certain keyboard layouts, so
'SPC /' has been moved to 'SPC s'. Similar has been done to other / and
. leader keybinds. Whats more, 'SPC s' for snippets is seldomly used and
available through other means, so it was removed.

Summary:
- 'SPC /' moved to 'SPC s'
- 'SPC f .' and 'SPC f /' moved to 'SPC f f' and 'SPC f F', respectively
- 'SPC p /' removed (already on 'SPC p f')
- 'SPC p ?' moved to 'SPC p F' (doom/find-file-in-other-projects)
- 'SPC n /' moved to 'SPC n s' (+default/org-notes-search)
- 'SPC n .' removed (already on 'SPC n N')
- Remove 'SPC s' prefix for snippets. Was seldomly used and most of its
  commands are available on other keys or through `M-x`, which is
  enough.
2019-11-15 22:17:30 -05:00
Henrik Lissner
a383293530
Merge pull request #2017 from bennofs/fix-jumplist-empty-buffer
Fix nil error in +ivy/jump-list for empty buffers
2019-11-12 16:19:44 -05:00
Benno Fünfstück
e19c73843d Display empty string instead of magic EMPTY BUFFER 2019-11-11 22:03:48 +01:00
Henrik Lissner
44d5e097c9
shell-command-to-string -> doom-call-process #1887
Minor optimization to remove a layer of indirection when starting
processes.
2019-11-08 16:02:06 -05:00
Henrik Lissner
99cd52e70f
💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
Benno Fünfstück
31b2a5a19e Fix nil error in +ivy/jump-list for empty buffers
For empty buffers which don't have any lines, `(thing-at-point 'line)`
will return `nil`. This broke `+ivy/jump-list`.
2019-11-04 11:57:52 +01:00
Henrik Lissner
ecace01a36
completion/ivy: remove org-capture remapping
counsel-org-capture isn't very useful when there are so few options.
2019-10-31 23:57:18 -04:00
Henrik Lissner
fd5b92e3f5
completion/ivy: remap evil-show-marks -> counsel-mark-ring 2019-10-27 14:03:45 -04:00
Henrik Lissner
68f2ac4d8c
completion/ivy: ivy-height = 17
20 was too tall!
2019-10-26 04:06:10 -04:00
Henrik Lissner
a4aae9c3a7
completion/ivy: ivy-height = 20
Ivy is a bit cramped otherwise
2019-10-26 03:58:08 -04:00
Henrik Lissner
cf21cdc68c
completion/ivy: minor refactor 2019-10-25 20:25:21 -04:00