emacs-evil / evil-surround

you will be surrounded (surround.vim for evil, the extensible vi layer)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working with pointy brackets

xeruf opened this issue · comments

commented

They seem to be in the list by default: (?> . ("<" . ">"))

But neither ys> nor ds> work for me, reporting "No such pair found"

Doom config, maybe related:

generated  Oct 11, 2022 12:41:43
system     "Arch Linux" Linux 5.19.13-arch1-1 x86_64 x
emacs      28.2 ~/.config/emacs/
doom       3.0.0-pre PROFILE=_@0 HEAD -> master, origin/master ba35f12be 2022-10-02
           19:13:58 +0200 ~/.config/doom/
shell      /usr/bin/zsh
features   ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
           JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
           PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
           XIM XPM GTK3 ZLIB
traits     gui daemon server-running custom-file
custom     debug-on-error warning-suppress-types safe-local-variable-values
           custom-safe-themes
modules    :config use-package :completion company ivy :ui doom doom-dashboard hl-todo
           indent-guides minimap modeline nav-flash ophints (popup +defaults) tabs
           treemacs vc-gutter vi-tilde-fringe workspaces zen :editor (evil
           +everywhere) file-templates fold snippets word-wrap :emacs (dired +icons)
           electric ibuffer undo vc :term eshell :checkers syntax spell grammar :tools
           direnv editorconfig (eval +overlay) lookup lsp magit make pass pdf :os tty
           :lang elixir emacs-lisp (go +lsp) (haskell +lsp) json (java +meghanada)
           javascript kotlin latex markdown (org +pretty +dragndrop +journal +roam2
           +pomodoro +noter +present +pandoc) plantuml rst (ruby +rails +tree-sitter
           +rbenv) sh yaml :email mu4e :config (default +bindings +smartparens)
packages   (emms) (exiftool) (elpher) (activity-watch-mode :recipe (:fork t))
           (kill-or-bury-alive) (recompile-on-save) (vc-fossil) (dired+) (xterm-color)
           (rainbow-mode) (org-journal :recipe (:host github :repo
           toemacs/org-journal)) (websocket) (org-roam-ui :recipe (:host github :repo
           org-roam/org-roam-ui :files (*.el out))) (ox-context :recipe (:host github
           :repo Jason-S-Ross/ox-context :branch develop)) (ox-bb :recipe (:host
           github :repo mmitch/ox-bb)) (evil-tutor) (evil-replace-with-register)
           (visual-fill-column) (togetherly) (auto-correct) (nov) (picpocket) (dictcc)
           (go-mode) (haml-mode) (web-mode) (ess) (csv-mode) (pkgbuild-mode)
           (adoc-mode) (chordpro-mode :recipe (:host github :repo
           toemacs/chordpro-mode)) (osm-mode :recipe (:host github :repo
           ruediger/osm-mode)) (plantuml-mode :recipe (:host github :repo
           xeruf/plantuml-mode)) (twee-mode :recipe (:host github :repo
           magoyette/twee-mode)) (twee-chapbot-mode :recipe (:host github :repo
           magoyette/twee-chapbook-mode))
unpin      org-journal plantuml-mode

Thanks for the bug report. Can you:

  1. Give some example text, with a cursor position
  2. Show what result you observe with a certain key combination
  3. Show what result you expect with that key combination

thanks

commented

Example text, cursor on the i in normal mode: <hi>

Keys pressed ds> - expectation that only hi remains

Actual: Message "No such pair found", text does not change

I can't replicate this in a minimal setup, so it's probably your config (possibly Doom's) but it appears not to be an issue with evil-surround. I'd recommend you recursively bisect your config to find the culprit, and if you still can't find the cause, open an issue on the doom github. Hope that helps!

I'll close, but feel free to re-open if you discover it is in fact an evil-surround bug.