Henrik Lissner
db7b2f6da9
completion/ivy: show chevron on highlighted item in tty
...
So its easier to see in the terminal, where some themes may not have a
visible background for the current match.
2020-08-07 23:07:51 -04:00
Henrik Lissner
e00bfc7612
Minor refactors & reformatting
2020-05-25 03:43:40 -04:00
Henrik Lissner
ea18c83c0a
General refactors & reformatting across the board
2020-05-15 01:44:53 -04:00
Henrik Lissner
fa23a912de
Fix #2778 : +ivy/projectile-find-file hangs in /
2020-03-27 02:30:49 -04:00
Henrik Lissner
3b6fd1b360
Deactivate mark after successful file search
...
Fixes #2523
2020-02-11 13:36:23 -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
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
8a080e037c
completion/ivy: general refactor
2019-12-20 14:03:35 -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
7fa4e67e39
Minor refactors
2019-12-14 20:42:55 -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
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
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
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
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
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
cf21cdc68c
completion/ivy: minor refactor
2019-10-25 20:25:21 -04:00
Henrik Lissner
f79d191701
completion/ivy: use region is active & fix regex quoting
...
Fixes #1930
2019-10-22 12:36:43 -04:00
Henrik Lissner
45a17c86ba
Add +ivy/jump-list & bind 'SPC b j' to it
...
Falls back to evil-show-jumps for non-evil users.
2019-10-20 19:57:27 -04:00
Henrik Lissner
e0469e14c0
Minor refactors & reformatting across the board
2019-10-20 19:57:27 -04:00
Henrik Lissner
cbc7c2aaf0
completion/ivy: remove -S switch
...
If ivy-case-fold-search == 'auto, counsel-{ag,rg} does this for us.
2019-10-20 10:58:53 -04:00
Henrik Lissner
d5e6c8813e
completion/ivy: use counsel-compile
...
Wrote wrappers to replace compile and projectile-compile-project.
2019-10-17 01:41:37 -04:00
Henrik Lissner
6ba7c97501
Remove the_platinum_searcher support
...
I'm reducing the scope of our project search so we can eventually focus
on ripgrep. By specializing I can extend Doom's features for project
searching.
2019-10-10 22:02:18 -04:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
...
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
d7ed52f3c7
Add ui/hydra module
...
And conforms all existing hydras to the naming convention for
interactive commands, e.g.
+vc-gutter-hydra -> +vc/gutter-hydra
2019-07-22 23:51:12 +02:00
Henrik Lissner
149b2617b0
💥 revise hook/var fns naming convention (2/2)
...
This is second of three big naming convention changes. In this commit,
we change the naming conventions for hook functions and variable
functions:
1. Replace the bar | to indicate a hook function with a -h suffix, e.g.
doom|init-ui -> doom-init-ui-h
doom|run-local-var-hooks -> doom-run-local-var-hooks-h
2. And add a -fn suffix for functions meant to be set on variables,
e.g.
(setq magit-display-buffer-function #'+magit-display-buffer-fn)
See ccf327f8 for the reasoning behind these changes.
2019-07-22 02:30:38 +02:00
Henrik Lissner
854d8ce00a
Fix (null uniquify-buffer-name-style) errors from ivy
...
Errors out in Emacs 25.x
2019-07-17 16:14:38 +02:00
Henrik Lissner
750f45328a
Mark helm/ivy search engine autoloads interactive
...
Otherwise they don't show up in M-x
2019-07-02 23:17:19 +02:00
Henrik Lissner
9a02bd8ac8
Minor refactors across the board
...
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
Henrik Lissner
86ebe08593
Show dirname in ivy-switch-buffer #1506
...
Makes buffer names more readable in case uniquify-buffer-name-style is
nil (which is necessary to work around a limitation of persp-mode).
2019-06-26 14:28:40 +02:00
Henrik Lissner
0a7221798b
Start file searchs from basic sh/dash shell
...
Uses the most basic, uncustomized shell to a) prevent interference
caused by slow shell configs and b) speed up project text searches. This
comes at the cost of isolating these programs from envvars that the user
may have set in their shell configs in order to change
ag/rg/pt/git-grep/grep's behavior.
If this bothers you, change +ivy-file-search-shell to your shell (or
to the value of `shell-file-name`).
Possibly relevant to an issue mentioned in #1260
2019-06-17 15:10:55 +02:00
Henrik Lissner
76143d5a51
Escape pipes in selection for rg project searches
...
Pipes need to be double-escaped, because they're meaningful to both ivy
and ripgrep, and searches conducted on a selection need to be literal.
2019-06-16 23:04:39 +02:00
Henrik Lissner
6f3c1c6d00
Fix how project search escapes spaces #1487
...
When invoking project search (via SPC / p) with an active selection.
2019-06-13 09:37:01 +02:00
Henrik Lissner
4ef345fe50
Fix how project search escapes regexps #1486
...
When invoking project search (via SPC / p) with an active selection, the
selection is captured and escaped, but was escaped incorrectly.
2019-06-12 20:17:47 +02:00
Henrik Lissner
750d7629e1
Fix {git-,}grep backends for project search #1479
2019-06-10 16:04:48 +02:00
Henrik Lissner
2f569eda51
Silence malformed function warnings from ivy-hydra
2019-05-21 00:30:42 -04:00
Henrik Lissner
fe36bbca1f
Standardize C-c C-e for ivy wgrep
...
Removes backtab in favor of standardizing C-c C-e. Already used by helm,
wgrep and dired.
2019-05-21 00:30:42 -04:00
Henrik Lissner
d3cb394ce4
Refactor +ivy/tasks
...
Just realized ivy passes the candidate in its original data structure to
its handlers.
2019-05-19 02:18:26 -04:00
Henrik Lissner
2fa2639d64
Add value column to {describe,helpful}-variable
2019-05-14 10:06:36 -04:00
Andrew Whatson
876e2a250f
Fix ivy-switch-buffer virtual buffer support
2019-05-13 23:45:21 +10:00
Andrew Whatson
9cdd5b2f99
Fixes for ivy-switch-buffer icons
...
Corrects the ivy-switch-buffer transformer to use buffer icons (not file
icons), and fixes alignment issues in the icon display.
2019-04-27 00:14:53 +10:00
Henrik Lissner
77e4cc4d58
💥 Remove :feature category
...
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:
- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces
More potential changes in the future:
- A new :term category for terminal emulation modules (eshell, term and
vterm).
- A new :os category for modules dedicated to os-specific functionality.
The :tools macos module would fit here, but so would modules for nixos
and arch.
- A new :services category for web-service integration, like wakatime,
twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
Henrik Lissner
7e7d6ae5a2
Fix hydra-ivy keybind on M-o #1342
2019-04-20 02:18:49 -04:00
Henrik Lissner
0f8baf3f3e
Minor comment tweaks
2019-04-17 11:19:37 -04:00