Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gp/gP #1169

Closed
sooqua opened this issue Jul 10, 2019 · 5 comments
Closed

gp/gP #1169

sooqua opened this issue Jul 10, 2019 · 5 comments

Comments

@sooqua
Copy link

sooqua commented Jul 10, 2019

Issue type

  • Enhancement request

Environment

Emacs version: 26.2
Operating System: Arch Linux x86_64 5.1.16-arch1-1-ARCH
Evil version: 1.2.14
Evil installation type: MELPA
Graphical/Terminal: Yes
Tested in a make emacs session (see CONTRIBUTING.md): No

Reproduction steps

  • Start Emacs
  • Open file with multiple lines
  • Yank multiple lines
  • gp

Expected behavior

Text pasted and cursor is at the end of pasted text

Actual behavior

Nothing

Further notes

Can we have gp/gP please? I can't live without this feature.

@sooqua
Copy link
Author

sooqua commented Jul 10, 2019

Oh, didn't realize this project is abandoned. Sorry.

@jixiuf
Copy link
Contributor

jixiuf commented Jul 12, 2019

#787 maybe is related

@simias
Copy link

simias commented Jul 23, 2019

I was actually looking into that when I stumbled upon #1173

Anyway, it doesn't seem too hard to implement gp using a macro like p`] (paste and move the cursor to the mark after the end of last paste).

@simias
Copy link

simias commented Jul 23, 2019

So, while hacking into evil to fix #1173 I think I also encountered a way to implement gp/gP easily: just call the current evil-paste-before/evil-paste-after methods then call (evil-exchange-point-and-mark) which should do the right thing and move the cursor to the end of the selection.

@axelf4
Copy link
Collaborator

axelf4 commented Jan 9, 2023

Fixed by #1650.

@axelf4 axelf4 closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants