Commit graph

86 commits

Author SHA1 Message Date
Henrik Lissner
659f7bfc71
refactor!: deprecate IS-* OS constants
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:

  IS-MAC      ->  (featurep :system 'macos)
  IS-WINDOWS  ->  (featurep :system 'windows)
  IS-LINUX    ->  (featurep :system 'linux)
  IS-BSD      ->  (featurep :system 'bsd)

The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.

Fix: #7479
2024-02-04 17:54:29 -05:00
Ellis Kenyő
9787022b83
refactor!: replace all-the-icons with nerd-icons
BREAKING CHANGE: This commit replaces all-the-icons with nerd-fonts. Any
all-the-icons-* function calls or variable references in your private
config will break and should be replaced with their nerd-icons-*
equivalent. That said, Doom will continue to install all-the-icons for
a while, so feel free to load it if you don't want to fully commit to
the change yet.

This change is happening because nerd-icon has wider support for GUI and
TUI Emacs; has a larger, more consistent selection of symbols; plus unicode
coverage.

Fix: #7368
Close: #6675
Close: #7364
2023-09-14 01:03:55 +02:00
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
24623f9959
refactor!(dired): move diff-hl config to :ui vc-gutter
BREAKING CHANGE: users who are used to diff-hl displaying diffs in dired
will notice they have vanished. diff-hl's conig has been moved to :ui
vc-gutter +diff-hl (added in 27a448b). Enable it to get it back.

Ref: 27a448b04b
2022-08-09 16:30:43 +02:00
Henrik Lissner
27a448b04b
feat(vc-gutter): add +diff-hl backend
This adds an alternative backend to the :ui vc-gutter module, enabled
with the +diff-hl flag. In the future, I intend for diff-hl to replace
git-gutter, as it is slightly faster and depends on more native
functionality (vc.el), but it's still a little buggy. It will remain
opt-in until those issues are sorted out.
2022-08-08 18:23:47 +02:00
4shen0ne
1e6d5c3f65
feat(dired): add +dirvish option
Fix: #6397
2022-06-23 13:47:22 +02:00
Henrik Lissner
fc868105ce
fix(dired): prevent auto-revert in dired-virtual-mode
dired-virtual-revert (the revert handler for dired-virtual buffers)
simply errors out and prompts the user if they want to switch to a
"real" dired buffer. This isn't helpful the automated nature of
auto-revert, so silence it.
2022-02-14 21:24:46 +01:00
Anh T Nguyen
8342db4f35 tweak(dired): all-the-icons-dired-monochrome = nil
To be consistent with all-the-icons uses elsewhere.

Ref: #5704
Co-authored-by: Anh T Nguyen <teeann@users.noreply.github.com>
2022-01-28 15:27:33 +01:00
Lele Gaifax
e5213f20e5 nit: fix several documentation typos 2022-01-10 02:21:49 +01:00
Gavin Downard
96390ef3b9 tweak(dired): don't auto-revert when remote
On slow connections `dired-auto-revert-buffer` causes excessive
slowdowns; this limits its behavior to local files.
2022-01-03 18:06:23 +01:00
Itai Y. Efrat
b3b875e226 fix(dired): dired-omit-files additions
- escape initial `.`
- use only noncapturing groups
2021-10-28 20:39:51 +02:00
Itai Y. Efrat
f0d0ce65ed fix(dired): ranger-travel bug
Overrides ranger-travel to have better mode detection for which
completion framework to use, and default to emacs built-ins instead of
ido.

In theory this should be a temporary fix until ralesi/ranger.el#236 gets
merged, but the maintenance status of ranger.el is not clear.

Fix #5509
Ref ralesi/ranger.el#236
2021-10-05 02:30:23 +02:00
Itai Y. Efrat
34fae1c01c Remove remaining Emacs27+ checks
- Remove remaining `EMACS27+` checks, since the whole codebase is
  assumed to run at version 27 or above now
- Remove `EMACS27+` definition since it's no longer needed
2021-07-10 16:03:41 +03:00
Henrik Lissner
dec15832de Fix #4877: dired not sorting directories first
On macOS and Linux, because ls-lisp hasn't been loaded yet.
2021-04-17 00:04:45 -04:00
Henrik Lissner
33af1f98b4 emacs/dired: drop non-standard switches on Windows
On Windows (or systems that don't support ls),
ls-lisp-use-insert-directory-program will be nil. In these cases, strip
out non-standard switches so they don't throw an error and make dired unusuable.

Fixes #3939
2021-04-14 23:43:45 -04:00
Valentin Herrmann
79c61629a5
Better defaults for dired 2021-03-09 16:43:22 +01:00
t-e-r-m
1dd796b180 Added :defer to dired-aux use-package! 2020-08-29 21:08:57 +05:30
t-e-r-m
0ef8f0031f configure dired-aux variables
`dired-create-destination-dirs` : set to "ask", non-existent directories will be
created when copying, if the user consents.
`dired-vc-rename-file` : rename file using the vc system, if present
2020-08-29 18:45:31 +05:30
t-e-r-m
4e92adaa08 Configure dired-git-info variables
dgi-commit-message-format set to

%h  - Abbreviated commit hash
%cs - committer date, short format (YYYY-MM-DD)
%s  - subject

First two are fixed-width, which makes it look neater.
2020-08-19 18:28:27 +05:30
Henrik Lissner
523e945a3a
Fix #3215: ripgrep reporting error code 2 on Windows
Closes #3512
2020-07-17 19:24:26 -04:00
Henrik Lissner
07714a12d4
Fix wrong-type-argument: sequencep 45 opening dired 2020-05-25 22:16:11 -04:00
Henrik Lissner
b625a54db6
Add -v switch to dired-listing-switches (for GNU ls)
Natural sorting of ls file list (when it comes to numbers/versions in
file names).
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
bc0db09a28
Fix #1703: dired not listing files over TRAMP 2020-05-12 23:22:50 -04:00
Henrik Lissner
bd6405673e
Fix #1703: dired listing no files over tramp
...on systems that don't have GNU ls installed and don't support
--group-directories-first
2020-05-03 13:39:29 -04:00
Henrik Lissner
7481bfd4d5
Remove -B from dired-listing-switches default
i.e. don't hide backup files in dired, or let dired-omit-mode handle
those.
2020-03-06 15:45:24 -05:00
Henrik Lissner
a4194c5746
Fix #1929: advice on non-existent functions 2020-02-29 11:29:25 -05:00
Mihai Dinu
46cc7f7fdf
Don't do dired git highlighting if remote
Fixes https://github.com/hlissner/doom-emacs/issues/2439
2020-01-27 23:50:05 +01:00
Henrik Lissner
2d97b877ed
Remove duplicate image-dired-dir setting 2020-01-06 04:49:57 -05:00
Henrik Lissner
54f42fef23
Add popup rules for image-dired 2019-12-29 15:44:10 -05:00
Henrik Lissner
995031f66f
emacs/dired: re-comment dired settings
Closes #2212
2019-12-19 18:42:37 -05:00
Henrik Lissner
0cb62657b7
emacs/dired: replace advice w/ remap for fd-dired 2019-12-13 14:23:44 -05:00
Henrik Lissner
33b78499fc
emacs/dired: fix {fd,find}-dired opening results in a popup #2159 2019-12-08 00:21:29 -05:00
Henrik Lissner
1655524836
emacs/dired: don't enable dired-hide-details-mode by default 2019-12-03 03:54:29 -05:00
Henrik Lissner
0bf1ea65dc
emacs/dired: disable dired-git-info by default
It is unacceptably slow in version controlled directories with many
files.
2019-11-25 02:02:57 -05:00
Henrik Lissner
b8c0126f8c
emacs/dired: don't enable dired-git-info in ranger
It won't correctly disable on `C-c C-e`, but it does work find if
enabled manually.

Also: refactors +dired-enable-git-info-h and map! call

Relevant to #2106
2019-11-24 16:50:47 -05:00
Henrik Lissner
5608ba7236
emacs/dired: disable dired-git-info-mode in wdired-mode
And refactor ranger/dired keybind for dired-git-info-mode (#2106).
2019-11-23 01:26:17 -05:00
Ting Zhou
a5ff637e6f emacs/dired: ranger catch up dired-git-info 2019-11-22 22:14:23 -08:00
Max Nickel
d295c5d723 disable dired-git-info when ranger is enabled and fix keybinding 2019-11-02 14:31:53 -04:00
Max Nickel
1b962937ce add keybinding to toggle dired-omit-mode 2019-11-02 14:31:20 -04:00
Max Nickel
0d7d107bbf remove unnecessary dotfile functions and hooks 2019-11-02 14:29:51 -04:00
Max Nickel
49fce0b1c3 [dired] follow function naming conventions 2019-10-27 17:47:20 -04:00
Max Nickel
9d55e75bd8 [dired] add support for hiding dotfiles and hide details by default 2019-10-27 17:32:52 -04:00
Max Nickel
5660d7ba6b [dired] add dired-git-info support 2019-10-27 17:31:53 -04:00
Henrik Lissner
b0106e2ac7
emacs/dired: replace 18f20a531 w/ 'quit-all' command #1937
There are a few workflows where having multiple buffers (e.g.
side-by-side) is preferrable, however, `dired-find-alternate-file` kills
the old buffer indiscriminately.
2019-10-26 13:39:52 -04:00
Henrik Lissner
18f20a5313
emacs/dired: stop dired buffer pollution #1937 2019-10-23 01:48:48 -04:00
Rudi Grinberg
e589c17cf6 Turn on dired-dwim-target
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-10-23 12:51:49 +09:00
Henrik Lissner
bf46a197a0
emacs/dired: appease byte-compiler sama 2019-10-22 12:36:43 -04:00
Henrik Lissner
0ccf31635d
emacs/dired: fix icons interfering w/ wdired #1929 2019-10-22 01:58:17 -04:00
Henrik Lissner
e0469e14c0
Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00