Commit graph

1349 commits

Author SHA1 Message Date
Vincent Zhang
05b213ff98 Improve force redisplay advice.
The issue has been fixed in 29. The workaround should only work for old versions.
2021-11-24 20:07:42 +08:00
Robert Irelan
36fed6d1a1
Add modeline segment for follow-mode (#489)
When follow-mode is enabled for a buffer, this will show a segment left
of buffer-info (which contains the file name) like "Follow M/N", where N
is the total number of follow windows for this buffer and M is the index
of the selected window.
2021-11-11 16:34:52 +08:00
Vincent Zhang
6a312f7fe9 Bump version to 3.2.2. 2021-11-06 22:50:24 +08:00
Vincent Zhang
b59802efba [Refactor] Add doom-modeline-wspc. 2021-11-06 22:48:51 +08:00
Vincent Zhang
79dc0ca1a9 Keep both position indicator and percent position.
Close #488.
2021-11-06 18:50:03 +08:00
Vincent Zhang
25e81e77cd Revert "Improve the workaround: avoid window flicker."
This reverts commit aed094c437.
Close #485.
2021-10-25 01:20:23 +08:00
Vincent Zhang
5d55484576 Improve hooks for active windows. 2021-10-19 00:11:19 +08:00
Vincent Zhang
aed094c437 Improve the workaround: avoid window flicker. 2021-10-18 22:43:11 +08:00
memeplex
084370d7a9
Improve force redisplay advice (#484)
* Improve force redisplay advice

By unconditionally advising `split-window' we ensure that redisplay:

1. Always triggers in the right window, so it solves an issue with
`org-attach' calling `fit-window-to-buffer' from a different window.

2. It's not tied to a buffer that may outlive its popup, so it solves
the issue with `org-set-tags-command' which buffer kept lurking around
with `doom-modeline--size-hacked-p' set to t.

As all known workarounds, this will trigger a quick sequence
redisplay -> fit -> redisplay that causes some little flickering when
the window effectively changes size in-between (which is usually the
case with popups).

Moreover, `fit-window-to-buffer' always transforms a height in pixels
to a height in characters and this operation unavoidably rounds up
to the next integer height in characters when the mode-line is of a
different size than the default character, hence introducing some
small amount of padding at the bottom of the window.

In order to avoid small but yet unpleasant visual artifacts whenever
possible, we only trigger a redisplay when it is strictly required,
that is when the mode-line height effectively differs from the default
character height.

To facilitate the construction of a "vanilla height" modeline when
`doom-modeline-height' <= 0 and `doom-modeline-icon' is nil we ensure
that this simpler modeline will be created, no matter the platform.

* Allow unhacked modeline with icons

Allow a modeline with default height to have icons.

It's recommended to also set `all-the-icons-scale-factor' to 1 in
order to ensure that the modeline will indeed have default height.
2021-10-18 22:21:39 +08:00
Tarjei Bærland
2a0eb1f800
Fix typo in doc string (#481) 2021-10-17 16:29:37 +08:00
Vincent Zhang
56876e64d9 Update lsp icon when necessary. 2021-10-13 14:44:20 +08:00
Vincent Zhang
257b9cd6de Update FAQ.
See #410: How to show that the R is running in inferior ess R mode?
2021-10-05 12:52:28 +08:00
Vincent Zhang
4cd8bf208c Refactor. 2021-10-01 18:49:35 +08:00
Vincent Zhang
af99ef6625 Fix docstring warnings. 2021-10-01 01:09:41 +08:00
Vincent Zhang
ffedb34800 Fix compatibility issue of the latest flymake.
Fix #469.
2021-09-25 14:03:17 +08:00
Vincent Zhang
bcbb276b51 Update comments. 2021-09-18 23:11:21 +08:00
Fabian Brosda
23bc8fe190
rename flymake--backend-state to flymake--state (#468)
* rename flymake--backend-state to flymake--state

s.a. 6e10086901

* adding alias for flymake--backend-state

This way the code should be compatible with old and new versions of
flymake.
2021-09-18 18:54:53 +08:00
Vincent Zhang
ef78fe07cd Fix the position of state icon in buffer-default-directory segment. 2021-09-09 01:27:57 +08:00
Vincent Zhang
6fc40724d2 Improve timemachine segment. 2021-09-09 01:24:15 +08:00
Vincent Zhang
16c654c121 Fix template. 2021-08-25 15:41:03 +08:00
Vincent Zhang
c057016d8b Fix UT. 2021-08-24 21:23:18 +08:00
Vincent Zhang
2ad988bc2e Fix UT. 2021-08-24 21:18:04 +08:00
Vincent Zhang
e0f7c65fa9 Update template titles. 2021-08-24 20:39:27 +08:00
Vincent Zhang
8f33162f6b Update bug report template. 2021-08-24 20:24:10 +08:00
Vincent Zhang
b5cdb69ea8 Update bug report template. 2021-08-24 20:20:56 +08:00
Vincent Zhang
de796d0204 Update bug report template. 2021-08-24 20:19:04 +08:00
Vincent Zhang
3d71f8419a Fix bug report template. 2021-08-24 19:37:27 +08:00
Vincent Zhang
2b90b1f353 Update bug report template. 2021-08-24 19:36:33 +08:00
Vincent Zhang
96d2f59683 Fix bug report template. 2021-08-24 19:32:59 +08:00
Vincent Zhang
0706998018 Fix bug report template. 2021-08-24 19:32:32 +08:00
Vincent Zhang
1f651fe2f3 Fix bug report template. 2021-08-24 19:29:08 +08:00
Vincent Zhang
dbc25f041b Fix bug report template. 2021-08-24 19:25:19 +08:00
Vincent Zhang
0af985ade5 Improve bug report template. 2021-08-24 19:17:20 +08:00
Vincent Zhang
36609a9136 Fix UT. 2021-08-24 18:20:31 +08:00
Vincent Zhang
5f308333a2 Fix UT. 2021-08-24 17:51:23 +08:00
Vincent Zhang
5ed7a1bd0e Set doom-modeline-project-detection to auto. 2021-08-24 00:06:28 +08:00
Prashant Vithani
749e860d4e
Use file-local-name to get VC state (#464)
Recently the [change in vc-git in emacs](3572613550)
broke modeline state in remote files as it prepends a string in the
beginning and cannot retrieve relative file path to pass as git command
argument.

The fix here ensures that the prefix in the beginning of the file path
doesn't break the `(vc-state)` command by passing local file name of the
remote files.

Fix #463
2021-08-23 12:30:03 +08:00
Vincent Zhang
f5a994a52c project-roots is obsolete. 2021-08-21 17:17:25 +08:00
Vincent Zhang
ffb9e38828 Enable icons by default. 2021-08-07 17:22:36 +08:00
Sean Farley
d2d1825b9a
readme: fix instructions for mu4e segment (#456) (#461) 2021-08-05 17:09:57 +08:00
Vincent Zhang
0ad2e966ab Update logos. 2021-08-05 05:19:16 +08:00
Vincent Zhang
68b49a0505 Update logos. 2021-08-05 05:08:08 +08:00
Vincent Zhang
8cbb0457f3 Fix UT issue. 2021-07-22 18:13:39 +08:00
Vincent Zhang
233bad9db5 Fix UT issue. 2021-07-22 18:03:41 +08:00
Vincent Zhang
d0b8dea080 Fix UT issue. 2021-07-22 17:55:00 +08:00
Vincent Zhang
51af51d248 Enhance timemachine segment. 2021-07-22 02:33:30 +08:00
Vincent Zhang
77cd244ae5 Don't display icons in TUI. 2021-07-21 16:45:40 +08:00
Vincent Zhang
06606e0b8b Support 27.2 in CI. 2021-07-08 00:17:53 +08:00
_7696122
30f17d303b
Add sml-modeline to buffer-position (#458) 2021-07-06 14:04:36 +08:00
Vincent Zhang
07d03c4626 [Feature] Support citre-mode. 2021-06-28 01:31:51 +08:00