summaryrefslogtreecommitdiff
path: root/evil-surround.el
AgeCommit message (Collapse)Author
2024-03-25evil-surround.el: replace looking-at with looking-at-pKonstantin Kharlamov
We don't use the match-data in the function, so let's call the non-mutating version of `looking-back`
2023-09-17Return an empty range from evil-surround-editTom Dalziel
This fixes a bug with evil-cleverparens where evil-cp-delete tries to call evil-delete with the range, deleting too much text if the point isn't on the opening paren.
2023-09-12Fix get-delims to allow functions as valuesTom Dalziel
2023-09-12Trim whitespace from delimeters before using for deletion/changeTom Dalziel
Fixes #204
2023-08-19Revert "Revert "Enable lexical binding""StrawberryTea
This reverts commit 4a21d756b76a50e0c0619555836c9aa98f103d3d.
2023-08-13Make car + cdr safe for delete overlaysTom Dalziel
2023-08-13Restore old deletion strategy as backupTom Dalziel
2023-08-13Support multiple-character delimiter deletionTom Dalziel
Fixes #199
2023-06-27Revert "Enable lexical binding"Tom Dalziel
This reverts commit 2d878b6ccefe0f39216a178cefdc3f0fa2aa7fef.
2023-06-27Silence byte-compiler warningsBrian Leung
2023-06-27Enable lexical bindingBrian Leung
2022-12-29Merge pull request #188 from skangas/nongnu-elpa-fixesTom Dalziel
NonGNU ELPA fixes: license statement + bump version
2022-12-29Update maintainer for NonGNU ELPATom Dalziel
2022-05-04Revert "Merge pull request #191 from dalanicolai/master"Tom Dalziel
This reverts commit 123b30135bcb181d00e351d714263eaa137ae10b, reversing changes made to 2bc8aa6425f1311e985cf51ea6b5233c1ee6ce1c.
2022-04-17Limit global activation to text-, prog- and comint-modeDaniel Nicolai
Activating evil-surround in special-mode (i.e. read-only) buffers does not make sense. Furthermore, the bindings can overwrite bindings in modes like magit-diff-mode (see https://github.com/syl20bnr/spacemacs/issues/15448#issuecomment-1090810486). This commit limits the 'globally activated modes' to (modes derived from) text-, prog- and comint-mode via the `define-globalized-minor-mode` its [:predicate](https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Minor-Modes.html#index-define_002dglobalized_002dminor_002dmode] keyword. As this should be the default behavior, it is not essential to change/update the documentation.
2022-04-12Merge pull request #186 from leungbk/prefix-callsTom Dalziel
Add support for surrounding with function calls in prefix form
2022-04-09Fix visual screen-line surrounding bug.Areg
2022-01-06Bump version to 1.0.4Stefan Kangas
2022-01-06Fix license statementStefan Kangas
2022-01-02Add support for surrounding with function calls in prefix formBrian Leung
2021-06-15Fix yss behavior with visual-line-modeAreg
- Respect evil-respect-visual-line-mode
2020-06-03Fix dot repeat with counted motions1.1.1develYiming Chen
- rel: #133
2020-05-24Add surround text objects from local keymap (#165)itai33
* add local keymap support * add tests for local keymap * document local keymap support in readme
2019-12-17merge @jamesnvc PRs #160 and #1621.1.0ninrod
- fix some bugs in macro use cases: #161 and #159
2019-12-15Fix repeating tag changesJames N. V. Cash
To make repeating tag changes, need to record the output from the reading the new tag
2019-12-15Checking minibuffer window doesn't seem to make a difference eitherJames N. V. Cash
2019-12-13Remove apparently-unnecessary run-at-timeJames N. V. Cash
Fixes issue when surrounding with a tag from a macro
2019-10-13main el file: add dots and caps to evil-surround-tag-name-redeviantfero
tests: add tests for caps and dots support in tag names
2019-04-03optionally keep xml attributestam5
2018-12-18main el file: fix version to 1.0.3Filipe Silva
2018-12-16add csw, csW, css and csp shortcuts1.0.3tam5
2018-12-16tweak implementation file headerFilipe Silva
2018-10-20Fix visible narrowing when surrounding within a field (#135)Lionel Henry
* Fix visible narrowing when surrounding within a field * Test that buffer is widened before reading char
2018-10-18Revert "surround-function improvement for lisp modes (#134)"Filipe Correa Lima da Silva
This reverts commit 5a20c9757eff64e1567d313eb254126aef2bf3b2.
2018-01-02surround-function improvement for lisp modes (#134)Dickby
surround-function improvement for lisp modes
2017-12-10Fix regression for Emacs 26 caused by #125 fixJustin Burkett
Emacs 26 saves this-command-keys across read-from-minibuffer, so make sure this-command-keys is cleared when we record it before read-from-minibuffer. Fixes #131
2017-12-07Fix repeat when pair is determined by functionJustin Burkett
Apparently when read-from-minibuffer is called in a function to read tags, the information in this-command-keys is discarded. Introduce evil-surround-read-from-minibuffer to record this information as well as the input in the minibuffer. There is probably a more elegant solution to recording repeat info in evil-surround out there, but this will work for now. Fixes #125
2017-11-27Use ‘evil-surround’ as :group for customizable variableswouter bolsterlee
Before this change, there were two groups for this package in the customize interface. The customizable variables show up in the group named ‘surround’, while the mode itself shows up in the group named ‘evil-surround’. This is confusing and unnecessary. To address this, put everything inside the ‘evil-surround’ group, which is the same approach used by many other evil-mode extension packages.
2017-10-04Make `ysw` work like `cw`, not `ce`Evgeni Kolev
2017-09-10Remove debug messagesEvgeni Kolev
2017-01-24update readmev1.0.0ninrod
2017-01-20Fix defcustom type specification for pairs-alist variableWouter Bolsterlee
2016-11-28fix #84: revert 66b8f89 which reintroduced #24 as a regressionninrod
2016-10-29Unset execute permission for filesKristoffer Haugsbakk
Neither Elisp libraries nor readmes need to be executable in this sense. The permissions were changed from 644 to 755 in c96499e (“Extract surround-operator-alist to a customizeable variable”). A commit that didn’t have anything to do with permissions. So I guess some command was invoked by accident.
2016-10-26Point to new repository for EvilKristoffer Haugsbakk
Evil is no longer hosted on Gitorious. This repository is apparently the new official repository for Evil, since it is hosted under Frank Fischer’s account, and Evil’s page on the Emacs wiki[1] points to the wiki of this repository as being Evil’s home page. [1] https://www.emacswiki.org/emacs/Evil
2016-09-09Add explicit autoload definitions to avoid implicit evil dependencyWouter Bolsterlee
A plain autoload cookie does not work correclty for functions defined with evil-define-command, since that depends on evil being loaded, which is not the case when the autoload file is process during Emacs startup. Fixes #82.
2016-09-07Merge pull request #80 from mineo/doc-fixesTim Harper
Escape a backtick in markdown and fix the keywords on MELPA
2016-09-03Use evil helpers for correct key translationWouter Bolsterlee
Use evil’s facilities for reading keys from the keyboard, so that key translations are correctly applied. Change all commands that read keys that end up in the buffer as visible text to use the ‘<C>’ interactive spec (instead of ‘c’) and evil-read-key (instead of read-char).
2016-09-03Move the Keywords after the Mailing list headerWieland Hoffmann
At the moment, MELPA's archive-contents contains the mailing list information in the keywords because they're using an older version of Emacs for building archive-contents. I have verified that this does not break the Package-Requires header. This bug has been fixed in Emacs in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13207. The issue for MELPA is https://github.com/melpa/melpa/issues/4087.
2016-04-26Add missing evil package dependencyJunpeng Qiu