Commit graph

178 commits

Author SHA1 Message Date
Sergey Nizovtsev
6e30aa4395 popup: add rule for list-processes
Its content is typically thrown away after a quick glance, so make it popup.

Signed-off-by: Sergey Nizovtsev <snizovtsev@gmail.com>
2020-10-14 21:17:22 +03:00
Henrik Lissner
6a64f37435
Minor refactors & revision across the board 2020-07-31 01:39:24 -04:00
Henrik Lissner
d2f7999c29
Don't close treemacs on ESC #1970 2020-07-29 14:30:09 -04:00
Henrik Lissner
b8a8ca9b06
Consider any window with no-other-window a popup
This allows +popup/other (other-popup) to jump to side windows created
outside of Doom's popup manager (e.g. treemacs or neotree).
2020-07-25 17:50:27 -04:00
Henrik Lissner
233b15fe1e
Larger *Customize* popup rule & don't quit on ESC/C-g 2020-06-13 16:21:43 -04:00
Henrik Lissner
8bf902d5f4
General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
416f155d67
Show org-goto help window in a popup #3254
Rather than taking up a whole window only to show three lines of text.
2020-05-31 22:25:55 -04:00
Henrik Lissner
5b23b3d486
Add popup rule for org-journal search commands 2020-05-07 00:23:46 -04:00
Henrik Lissner
0904ee406f
Make +popup/diagnose output result
Rather than succeed silently.
2020-05-03 16:31:06 -04:00
Henrik Lissner
d12752324a
Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
Henrik Lissner
b78fc4eb76
Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
Mingwei Zhang
9af8786e25
minor documentation spelling fix
`more tha one` -> `more than one`
2020-02-29 12:14:17 -08:00
Henrik Lissner
86e03c04ba
Make display-buffer-alist regexps case-sensitive #2619 2020-02-28 22:26:24 -05:00
Henrik Lissner
f716aa5158
Fix conflict between :ui popup & org-src-window-setup
When set to split-window-*, other-frame, or current-window.
2020-02-25 13:36:18 -05:00
Henrik Lissner
9bd3d66617
Add popup rule for *Local variables* popup 2020-02-11 13:36:03 -05:00
Henrik Lissner
c395c08788
Fix #2396: remove unnecessary neotree popup hacks
Looks like they're not needed anymore.
2020-01-26 05:00:58 -05:00
Henrik Lissner
4fe24df90f
Fix #1970: don't count treemacs as a "popup"
And remove its popup rule.

It isn't being caught by the popup system in the first place, so this is
all a charade.
2020-01-06 03:50:48 -05:00
Yiming Chen
02a4f6b573 Suppress delete-window in org related functions
- If there's only one other window, delete-window would be called,
  instead of delete-other-windows
- when there is only one window other than the popup, this other window
  is the main window in this frame, delete it would raise an error:
  `delete-window: Attempt to delete main window of frame <frame name>`
2020-01-05 11:52:39 +08:00
Henrik Lissner
960d756b47
General, minor refactors 2019-12-30 18:23:56 -05:00
Henrik Lissner
2e9195742a
Fix shell popups from regaining their modeline #2228 2019-12-26 16:50:49 -05:00
Henrik Lissner
adc8cba14b
Revise docstrings & minor reformatting 2019-12-26 01:41:44 -05:00
Henrik Lissner
6ac04e5a6d
ui/popup: prevent infinite loop when killing popup buffers 2019-12-22 16:02:56 -05:00
Henrik Lissner
491e80a568
Fix cut-off which-key popups #2219 2019-12-21 02:14:36 -05:00
Henrik Lissner
a999a0ddd6
General refactors & comment revision 2019-12-19 14:51:34 -05:00
Henrik Lissner
e56cc98ae9
Move multi-term-buffer-name to :term term 2019-12-17 18:09:39 -05:00
Ralf Beckmann
7f06644490 Make +pop/raise return the current window 2019-12-17 21:14:35 +01:00
Henrik Lissner
207ce02a33
ui/popup: fix quit-window sometimes breaking popups
By burying the buffer and switching to a buffer that doesn't belong in a
popup.
2019-12-16 05:45:27 -05:00
Henrik Lissner
08fb9c544d
ui/popup: :transient -> :ttl in readme 2019-12-16 05:13:42 -05:00
Rudi Grinberg
dd7af506e3 Fix regex for detecting compilation buffer
*Compilation* and *compilation* are both allowed

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-12-16 12:37:18 +07:00
Henrik Lissner
a7d5da494e
Fix end-of-file syntax error 2019-12-06 21:45:38 -05:00
Henrik Lissner
996188250b
Minor refactors & comment revision 2019-12-06 17:16:34 -05:00
Henrik Lissner
a8fd59a054
Merge pull request #2143 from rgrinberg/popup-ignore-more
ui/popup: add more default rules
2019-12-03 22:56:33 -05:00
Rudi Grinberg
894c4e1855 Fix popup ignore rules
* Process Lis is without a space
* Escape trailing star
* Combine all rules
2019-12-04 09:46:27 +07:00
Henrik Lissner
bcdb9f583a
Require origin argument
If it doesn't satisfy windowp, it'll cause errors.
2019-12-03 20:00:38 -05:00
Henrik Lissner
79faa02d6b
Record origin window earlier
The selected window could change in between +popup--maybe-select-window calls.
2019-12-03 19:59:27 -05:00
Yiming Chen
359ae77250 ui/popup: extract +popup--maybe-select-window helper function 2019-12-04 08:32:27 +08:00
Yiming Chen
ca63b0bbfc ui/popup: respect :select nil when reusing a window
- before this change: when reusing a window, select option would get ignored
- after this change: when reusing a window, select option would be used
  just as a new popup
2019-12-04 08:20:17 +08:00
Rudi Grinberg
0bd0ac4ab9 Popup rules for more builtin types
process, timer, abbreviations, output, occur buffers are all better
displayed in a maximized fashion. Otherwise, they aren't really useful.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-12-03 23:38:00 +07:00
Henrik Lissner
a0e9981210
ui/popup: update configuration section in README 2019-11-25 13:51:23 -05:00
Henrik Lissner
fb13b902b0
Minor comment/doc revision & refactors 2019-11-21 14:46:45 -05:00
Henrik Lissner
99cd52e70f
💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
Henrik Lissner
a074a2c851
ui/popup: let completion popups handle themselves
Fixes #1976
2019-11-01 22:31:05 -04:00
Rudi Grinberg
0e0fa37b22 [popup] ignore send mail buffers
[C-x m] should not appear in a popup.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-10-28 12:20:35 +09:00
Henrik Lissner
74cad2632b
ui/popup: use old alist use-case for set-popup-rule!
This paradigm has been long since abandoned.
2019-10-21 06:26:57 -04:00
Henrik Lissner
b3a0fb9fc7
ui/popup: correct docstring of set-popup-rule!
Predicate functions take two arguments.
2019-10-21 06:26:57 -04:00
Henrik Lissner
e7f492c400
ui/popup: fix "back to top level" issue
The popup manager (by default) auto-kills most popup buffers after
~5s (controlled by the :ttl property). However, when backtrace buffers
are killed, it calls `top-level`. When the popup manager kills the
buffer, this causes janky cursor movement and the message "Back to top
level" to be displayed in the minibuffer.
2019-10-20 19:57:27 -04:00
Henrik Lissner
7a1c8bd582
ui/popup: fix buffer cleanup ignoring kill-buffer-hook 2019-09-22 14:25:10 -04:00
Henrik Lissner
87c6e8900c
Fix org-insert-link desc prompt for helm users #1710
A change upstream causes the prompt to be suppressed if the current
command wasn't run interactively. The check for interactivity gets
tricky when advice are involved.
2019-09-22 13:06:16 -04:00
Henrik Lissner
799e822a19
ui/popup: move help buffers to new vslot
So *Messages* and help buffers get stacked instead of opened side by
side.
2019-09-22 11:58:42 -04:00
Henrik Lissner
db0846f502
ui/popup: don't catch ibuffer windows
They're your problem now.
2019-09-22 11:56:00 -04:00