aboutsummaryrefslogtreecommitdiff
path: root/evil-command-window.el
AgeCommit message (Collapse)Author
2023-08-27Support command-line window for any minibuffer argAxel Forsman
Introspection of the current minibuffer argument history and prompt is possible, hence there is no need for the specialized evil-ex-command-window and evil-ex-search-command-window functions.
2023-08-27Reselect minibuffer when quitting command-line winAxel Forsman
Pressing C-f while editing an Ex command to open the command-line window and later quitting that window used to not reselect the Ex command line, but instead just continue the recursive edit in some previous window. This was specially confusing before commit 02004bce6884619e687654d333b75c90f8fc27d0, as the evil-ex-abort hack did not trigger, leaving you in a bad state with evil-ex-current-buffer set to t. This commit fixes that by setting the delete-window window parameter on the command-line window to a function that switches back to the minibuffer after deleting the window, which closes #1379. This commit also replaces the split-window call with a display-buffer invocation, to always spawn the window at the bottom of the frame, but also allow the user to override this behavior.
2023-08-20Some cleanupsAxel Forsman
2023-08-13Urgent revert of recent commits while evil is brokenTom Dalziel
Some of these commits can be almost immediately restored, once the time is found to do so. Revert "Fix evil-with-delay with dynamic binding" This reverts commit 1e9b2434264529fe0dd964b68fe89236a4abeac3. Revert "Some cleanups" This reverts commit 0cbd61f2de104fab16602d0418605cd0513b16f3. Revert "Misc minor changes" This reverts commit b291039b0c6ffc3b2f3c9f02b8ad2f0041127b12. Revert "Merge evil-with-delay condition and body lambdas" This reverts commit 1b56ffcc102b4c5f8b015e760b5f9cf5932622af. Revert "(evil-with-delay): New macro, extracted from `evil-delay`" This reverts commit 3d7faadf30016a8c20699a5fb1b5731b8a49dcd2. Revert "Make evil-search-wrap-ring-bell work with evil-search" This reverts commit 5e72cf5b6d57b785ea229236bb5c4638db2c9a05. Revert "Stop the '</'> and '[/'] marks from intertwining" This reverts commit 26db9441a13ebedb2481d7ada4c3b5e60ec22795. Revert "Remove redundant `:group` args" This reverts commit 6e30037fdc6a275d78d6b82d89bd8e47bcf4d4e3. Revert "Avoid eval in evil-test-buffer" This reverts commit 27d81ad406d2d3e07591b927357d2354ef5b5c65. Revert "Use lexical-binding everywhere" This reverts commit 44c7f301468c264a781be4ee8ae879fe1b457e60.
2023-08-12Some cleanupsAxel Forsman
2023-08-06Support recursive editing in ExAxel Forsman
This is a proper fix for #569 instead of commit ab0f6a546e6c703cd8d3c0d7c1035196b0455c45, which simply aborted the Ex command line upon it being unfocused. Apart from disallowing recursive editing, that also made debugging Ex errors impossible. The core issue was that evil-ex-current-buffer had a dual purpose: (I) While in the minibuffer, it stored the original buffer the Ex command would eventually act on, and was used for special registers and some argument handlers; and (II) While executing an Ex command it was non-nil, which signified that commands should use the variables evil-ex-range, evil-ex-bang and evil-ex-argument set by evil-ex-call-command, instead of, say, prompting for a motion. However, during recursive editing due to (I) evil-ex-current-buffer was dynamically let-bound, triggering the special behavior in (II), meaning all operators always worked on the evil-line motion, i.a. Fix this by, for (I), only setting evil-ex-current-buffer buffer-locally in the Ex minibuffer, renaming it to evil-ex-original-buffer (similar to minibuffer--original-buffer), and for (II) instead introducing evil-called-from-ex-p which is set to t solely during evil-ex-call-command. Closes #1415, by only making use of the return value of minibuffer-selected-window where required.
2023-07-17Read Ex commands from bufferAxel Forsman
When lexing a string with string-match and its START argument, there is no way to anchor matches to the START position. Instead, one must either allocate substrings - as done prior to commit 56b43b6f7e014e905f85df1c542c67f46ea99566 - or use looking-at etc., instead. This commit opts for the latter. The Ex completion-at-point functions are also rewritten in order to avoid having to add ex-index text properties to the command string, since evil--ex-syntactic-context could be extended to provide that information just as easily.
2022-06-28Small fix in 'evil-command-window-exGabriel Barreto
No more "There are no full lines in the region" when 'hist is empty. Plus doing it like this is actually faster.
2022-04-25Bump version to 1.15.0Tom Dalziel
2020-03-04Bump version to 1.14.01.14.0Eivind Fonn
2020-03-03fix `wrong number of argument error` in evil-ex-command-windowYiming Chen
- evil-ex-command-window only accepts 0 arguments - and it doesn't make sense to call itself recursively - this issue was introduced in [1: 48ceb43] 1: 48ceb43f8a1e95e6d7eafe428ff640d83952462f Clean up compilation warnings from lexical binding
2020-02-03Clean up compilation warnings from lexical bindingEivind Fonn
2020-01-29Re-enable lexical bindingEivind Fonn
This reverts commit e9391ae769bee189ef6144b8861b117d5c948a80, and removes spurious debug messages.
2020-01-28Revert "Enable lexical binding"Eivind Fonn
This reverts commit c6086a7b0b44963071096e3ed7545f617de88915.
2020-01-28Enable lexical bindingEivind Fonn
2019-12-18Bump version to 1.13.0Eivind Fonn
Version 1.2.15 was accidentally tagged as 1.12.15, and released as such by MELPA Stable, so now I guess we have to run with it.
2019-12-11Bump version to 1.3.0-snapshotEivind Fonn
2019-12-11Bump version to 1.2.151.2.15Eivind Fonn
2019-01-04Bump version to 1.2.141.2.14Eivind Fonn
2017-10-02update version to 1.2.131.2.13Eivind Fonn
2016-04-05Merge stableFrank Fischer
2016-04-05update version to 1.2.121.2.12Frank Fischer
2016-04-04command-window: Store ex command in history before execution (fix #653)Frank Fischer
2016-04-04command-window: Replace `mapc` by `dolist`Frank Fischer
2016-03-07Merge with stableFrank Fischer
2016-03-07update version to 1.2.111.2.11Frank Fischer
2016-02-23evil-command-window.el: Declare `evil-search-module`Frank Fischer
2016-02-23command-window: Handle ex/search history correctly (re #623)Frank Fischer
2016-02-23Fix initial space in command-windowFrank Fischer
The initial content of the last command window line was a single space. The reason was that otherwise the line prefix is not drawn. This is problematic because it causes a single space to be appended to entered commands. While ex commands usually handle this correctly, it is important for search. The new implementation ensures that the command window ends in an empty line, the input is expected on the second to last line.
2016-01-18update version to 1.2.101.2.10Frank Fischer
2016-01-11update version to 1.2.91.2.9Frank Fischer
2015-11-09update version to 1.2.81.2.8Frank Fischer
2015-11-02update version to 1.2.71.2.7Frank Fischer
2015-10-26update version to 1.2.61.2.6Frank Fischer
2015-09-28update version to 1.2.51.2.5Frank Fischer
2015-09-13update version to 1.2.41.2.4Frank Fischer
2015-08-16update version to 1.2.31.2.3Frank Fischer
2015-08-09update version to 1.2.21.2.2Frank Fischer
2015-07-04update version to 1.2.11.2.1Frank Fischer
2015-07-04update version to 1.2.01.2.0Frank Fischer
2015-05-11update version to 1.1.61.1.6Frank Fischer
2015-05-10update version to 1.1.51.1.5Frank Fischer
2015-05-03update version to 1.1.41.1.4Frank Fischer
2015-04-26update version to 1.1.3Frank Fischer
2015-04-20update version to 1.1.2Frank Fischer
2015-04-11update version to 1.1.11.1.1Frank Fischer
2015-04-08update version to 1.1.01.1.0Frank Fischer
2015-04-08add `evilupdate.el` scriptFrank Fischer
2014-12-15Prevent auto-fill-mode in command windowEmanuel Evans
In addition, change the base mode to fundamental-mode from text-mode (there's no advantage to running text-mode hooks that I can see, and there could be more incompatibilities).
2014-10-25replace `error` with `user-error` where appropriateFrank Fischer