Commit graph

19 commits

Author SHA1 Message Date
Daanturo
08dac1400f fix(default): +default/yank-buffer-path echos the file name as nil
Emacs 29 with PGTK's kill-new doesn't return its STRING argument (with
the default settings) anymore, so we explicitly pass the file path to
prevent the confusing message "Copied path to clipboard: nil".
2022-08-03 19:26:19 +02:00
Henrik Lissner
7ca50e0ce8
feat(default): bind 'SPC b y' to yank whole buffer
Evil may not always be available in all buffers, and in line with the
filepath yank commands on SPC f y/Y, I thought this command could be
useful. However, I omitted a "replace buffer with paste" command because
in any editing context, evil should be available, in which case it'd be
redundant with `vigp` (or yig for yanking the buffer).

Close: #5281
Co-authored-by: Alex Palaistras <deuill@users.noreply.github.com>
2022-06-21 18:46:25 +02:00
Daanturo
e19a6523ae feat(default): may include project name for SPC f Y
+default/yank-buffer-path-relative-to-project: with non-nil prefix arg,
copy the file name relative to the project root's parent.

Sometimes we also want to specify the project name to let others know
which is the currently mentioned project.
2021-09-15 19:01:46 +02: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
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
Edmund Miller
b741d6a3b9 fix(selectrum): Remove unnecessary advice overrides 2021-07-25 02:49:40 +03:00
Jan Felix Langenbach
c84bc953d9 Simplify (% current-column tab-width) code 2021-05-13 10:50:44 +02:00
Jan Felix Langenbach
3c41823824 Fix wrong column being used and resulting bugs 2021-05-13 09:49:30 +02:00
Jan Felix Langenbach
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
Henrik Lissner
91f8d3e5d0 Fix void-variable sp-get-thing
When smartparens is disabled.
2021-02-15 14:57:14 -05:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
83faa84591
Fix backspace advice with multi-character sp pairs 2020-07-23 01:26:03 -04:00
Henrik Lissner
2cedf150ec
Fix #3268: overeager deletion of closing parens
Close #3566
2020-07-15 15:17:55 -04:00
Henrik Lissner
776663cb45
Fix #3217: backspace noops if tab-width=1 2020-05-28 05:51:56 -04:00
Henrik Lissner
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
Henrik Lissner
798b5bdaea
Add +default-want-RET-continue-comments option
For disabling comment continuation on RET.
2020-04-30 16:29:12 -04:00
Henrik Lissner
b78fc4eb76
Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
Henrik Lissner
d1becfce89
config/default: reorganize autoloads 2019-12-23 17:20:19 -05:00