Commit graph

24 commits

Author SHA1 Message Date
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
442d607ec0
fix: remove outdated uses of user-emacs-directory
Doom changes user-emacs-directory (see 46844b5 for explanation), so
doom-emacs-dir should be used to refer to your $EMACSDIR instead.

Fix: #6530
Ref: 46844b55de
2022-07-04 02:58:11 +02:00
Henrik Lissner
009613a470 refactor(default,lib): doom--org-headings 2022-02-10 21:07:20 +01:00
Henrik Lissner
f0ba6c99b2 fix(default): search symbol at point from project root
...Rather than current directory.

While +default/search-project-for-symbol-at-point should operate out of
the current project's root, +default/search-notes-for-symbol-at-point
must operate out of org-directory, and no where else, even if
org-directory is not a valid project. 411ed0c8f8 was written to fix
that, but it indirectly broke
'+default/search-project-for-symbol-at-point' (causing it to always
resolve to the current directory, rather than the current project's
root).

Amend: 411ed0c8f8
Fix: #5831
2021-11-25 17:05:42 +01:00
Henrik Lissner
411ed0c8f8 fix(default): search commands not respecting default-directory
Commands that delegate to `+default/search-project-for-symbol-at-point`
to search a directory (like +default/org-notes-search) would not scope
searches to default-directory.
2021-11-20 00:02:11 +01:00
Itai Y. Efrat
74aae48944 feat(default): add .emacs.d search on <leader> s e 2021-09-23 11:40:04 +02:00
Henrik Lissner
69f8f5b242 feat(default): narrow to multi-line region in +default/search-buffer
Since multi-line inputs are useless to consult-line and swiper, I've
changed +default/search-buffer to be more DWIM (do-what-I-mean). i.e. if
a selection is active when invoking it, and...

- The selection is multi-line: restrict the search to that region.
- The selection is *not* multi-line: use the selection as the initial
  input.
- Otherwise, search the whole buffer as normal.
2021-09-15 01:22:33 +02:00
Henrik Lissner
35f701a999 fix(default): search region literally in +default/search-buffer 2021-09-15 01:22:33 +02:00
Henrik Lissner
6b5c34a1db fix(default): region handling in +default/search-buffer
+default/search-buffer now correctly uses the active selection when
invoking `consult-line` (on 'SPC s s' or 'SPC s b').

Close #5406

Co-authored-by: Sævar Berg <saevarb@users.noreply.github.com>
2021-09-14 19:33:26 +02:00
Itai Y. Efrat
770084fdda vertico: use consult-line in +default/search-buffer
While it only gives one candidate per line, it's more important to have
something that uses the completion UI
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
a0eb4e9b65 completion/selectrum -> completion/vertico, part 3
- Rename all functions and variables in the module to reflect the
  namechange (and the irc jump function)
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
24eaa1317c completion/selectrum -> completion/vertico, part 2
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
2021-07-25 02:51:15 +03:00
Itai Y. Efrat
ed922a62cb selectrum: improve bindings
- add missing emacs bindings
- properly feature guard swiper related bindings
- for selectrum, unbind `SPC s B` and temporarily bind `SPC s s` to
  isearch to prevent don't get errors until we decide what to do there.
- update readme to reflect that
2021-07-25 02:50:42 +03:00
Sebastian Sturm
0cdc7ec8e1 Add selectrum branch for SPC-* symbol search
other +default/search-... convenience methods already support
Selectrum explicitly, so perhaps there's a good reason not to
do the same for +default/search-project-for-symbol-at-point?
2021-07-25 02:49:41 +03:00
Jethro Kuan
65c153796e Add selectrum project search 2021-07-25 02:49:40 +03:00
Henrik Lissner
a6dc6275f8
Fix #3960: make prefix arg consistent in +default/search-project
Is documented to include ignored/hidden files in the search result, but
would prompt for another project instead.
2020-09-19 14:40:11 -04:00
Henrik Lissner
f82775fead
Fix 'Wrong type argument: commandp, +default/search-project'
Regression from #3656
2020-07-31 02:42:35 -04:00
Nham Le
6a4283c9d4 More convenient search buffer 2020-07-31 12:55:49 +07:00
Leo Alekseyev
8dd55901c3 Don't set prefix-arg when delegating to ivy/helm from +default/search-project
The prefix arg for +default/search-project is intended to enable the
user to pick search location, however when it propagates to the ivy
search function it turns on the "search ignored files" functionality,
which us typically not intended and, furthermore, can be (if desired)
turned on simply by typing the search command in, for exampe,
counsel-rg's case as `-uu -- mysearchterm`
2020-06-10 03:50:25 -07:00
Henrik Lissner
77a4e8f8a7
Fix switch-project completion defaulting to current project
Affects doom/browse-in-other-project, doom/find-file-in-other-project,
+default/search-other-project and
+default/search-project-for-symbol-at-point.

When performing a text or file search in "another project", prior to
this update the current project would be the first highlighted
candidate, which doesn't make much sense when you're invoking a command
for searching *other* projects.
2020-05-26 14:06:19 -04:00
Henrik Lissner
ba8892d7e9
Fix #3004: stale root cache on project search 2020-04-30 19:02:20 -04:00
Henrik Lissner
27bf3c85b5
Generalize thing-at-point & region functions 2020-01-03 02:39:47 -05:00
Henrik Lissner
adc8cba14b
Revise docstrings & minor reformatting 2019-12-26 01:41:44 -05:00
Henrik Lissner
d1becfce89
config/default: reorganize autoloads 2019-12-23 17:20:19 -05:00