Commit Graph

106 Commits

Author SHA1 Message Date
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
33b646826b fix(vertico): add counsel-file-jump analogue
Fix 'SPC f F' / 'C-c f F' for vertico users
2021-07-28 12:54:23 -04:00
dd9657d90d Fix SPC f F w/ vertico + consult
Not a perfect analogue to counsel-file-jump, but it's a start (and
better than the previous no-op).
2021-07-25 17:55:59 -04:00
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
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
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
49a5c51615 selectrum: fix bugs when counsel is loaded (hack)
some doom functions check the completion module with `fboundp`'s instead
of `featurep!`, and counsel can be loaded by using e.g. `lispy`. we add
temporary fixes for this by checking for selectrum stuff first, but this
should be given a more robust fix later on

also we document the selectrum PR's hacks in the TODO.org

see discussion on #5013
2021-07-25 02:50:42 +03:00
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
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
b741d6a3b9 fix(selectrum): Remove unnecessary advice overrides 2021-07-25 02:49:40 +03:00
65c153796e Add selectrum project search 2021-07-25 02:49:40 +03:00
c84bc953d9 Simplify (% current-column tab-width) code 2021-05-13 10:50:44 +02:00
3c41823824 Fix wrong column being used and resulting bugs 2021-05-13 09:49:30 +02:00
6aa29e82ae Fix #4577: WS not at BOL is deleted to tab columns
Changes the behavior of
doom/backward-delete-whitespace-to-column
to only delete to the closest tab column if there
is only whitespace between point and BOL.
This coincides with what the comments state to be
the original intent.
2021-05-13 01:06:30 +02:00
91f8d3e5d0 Fix void-variable sp-get-thing
When smartparens is disabled.
2021-02-15 14:57:14 -05:00
be9b3ff352 Bind SPC f Y to yank path relative to project
Also, both commands now announce "Copied path to clipboard: ..." to make
it clear it worked (and what is being copied).
2021-02-15 14:54:13 -05:00
c7029731d1 Updated projectile-project-search-path to use the correct arguments when
calling message and projectile-discover-projects-in-directory.
2021-01-28 18:51:42 -06:00
2e088e7945 More feedback from +default/discover-projects
Log successes and failures to the echo area/*Messages* so we know the
command worked (or didn't).
2021-01-23 18:50:21 -05:00
03fe396eea Move +default/{find-in,browse}-emacsd to core lib
Renamed them to:

+ doom/find-file-in-emacsd
+ doom/browse-in-emacsd
2020-11-19 00:44:16 -05:00
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
f22f2e28b8 Modifying wrong variable judgment logic 2020-08-28 15:57:58 +08:00
5c9e21814e Fix non evil environment (void variable evil this operator) 2020-08-28 15:40:08 +08:00
841eacc77d tools/lsp: lazy load <leader> c l keybind
Fixes a issue where folks would try to rebind <leader> c, only to get a
non-prefix key error about <leader> c l.
2020-08-27 17:44:58 -04:00
d8908a0c32 Fix +default/newline indenting after newline
This was intended to be newline minus indent, since newline itself is
remapped to newline-and-indent.
2020-08-08 03:02:37 -04:00
f82775fead Fix 'Wrong type argument: commandp, +default/search-project'
Regression from #3656
2020-07-31 02:42:35 -04:00
6a4283c9d4 More convenient search buffer 2020-07-31 12:55:49 +07:00
9c96feba56 Fix wrong-type-arg stringp error on +default/dired
When selecting a directory.
2020-07-27 18:09:57 -04:00
87199113bd SPC f d -> +default/dired
+default/dired will prompt you for a directory to open dired in. If
passed the universal argument, it will prompt you for a known project
instead.
2020-07-26 18:40:42 -04:00
83faa84591 Fix backspace advice with multi-character sp pairs 2020-07-23 01:26:03 -04:00
2cedf150ec Fix #3268: overeager deletion of closing parens
Close #3566
2020-07-15 15:17:55 -04:00
c0b7ff0f9d Merge pull request #3347 from leoalekseyev/mygithub/develop
Don't set prefix-arg when delegating to ivy/helm from +default/search-project
2020-06-10 20:57:57 -04:00
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
9f00dd4920 Warn if projectile-project-search-path is empty
When using +default/discover-projects
2020-06-10 02:55:59 -04:00
8bf902d5f4 General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
776663cb45 Fix #3217: backspace noops if tab-width=1 2020-05-28 05:51:56 -04:00
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
85fb59acca Fix wrong-type-arg symbolp error from notes commands 2020-05-14 15:17:01 -04:00
06b3439627 Load org on +default/{browse,find-in}-notes if org-directory isn't set 2020-05-13 19:33:23 -04:00
82ddc86335 Move RET & backspace fixes out of +smartparens feature
Neither of these are tied to smartparens, and should be available to
folks that have disabled +smartparens.
2020-05-12 19:42:03 -04:00
bae9f91636 Speed up +default/{find-in,browse}-notes
This removes the 2-3s wait when using these two commands when the user
has defined `org-directory` early.
2020-05-11 03:00:08 -04:00
da2247e3d6 Remove redundant +default/lsp-format-region-or-buffer command 2020-05-06 15:14:16 -04:00
ba8892d7e9 Fix #3004: stale root cache on project search 2020-04-30 19:02:20 -04:00
798b5bdaea Add +default-want-RET-continue-comments option
For disabling comment continuation on RET.
2020-04-30 16:29:12 -04:00
6cb1390fac Fix #2968: refactor how org-directory default is set 2020-04-25 15:43:05 -04:00
b78fc4eb76 Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
b72e00b6ca Bind SPC p D to +default/discover-projects
Closes #2601
2020-02-25 11:11:24 -05:00
493b85c396 Wait a second before restarting server
sit-for doesn't necessarily do so if emacs recieves input during.
2020-02-11 03:21:44 -05:00
27bf3c85b5 Generalize thing-at-point & region functions 2020-01-03 02:39:47 -05:00
adc8cba14b Revise docstrings & minor reformatting 2019-12-26 01:41:44 -05:00
d1becfce89 config/default: reorganize autoloads 2019-12-23 17:20:19 -05:00