Commit Graph

21 Commits

Author SHA1 Message Date
Steven Allen 29212d123f vterm: implement replace
Implements evil's "replace" operator ("r") for vterm.
2024-02-05 09:44:07 +08:00
Jakub Kadlcik 0df5c4815d vterm: allow moving the cursor backwards when exiting insert state
See #719
2023-05-01 21:09:38 -07:00
Jakub Kadlcik b194fa2e38 vterm: make the `G' button jump to the prompt line
AFAIK `vterm` is basically a square of the size of the whole window it
is placed in. As a consequence `M-x count-words` shows 30 lines even
for freshly spawned `vterm` with just one line of text. And as a
consequence `G` always jumps down to the bottom of the window, even
though it is an unused line.

This patch changes the behavior and makes `G` jump to the last prompt
line. Which in ideal world, should be the last line of the buffer.
2023-02-14 01:18:16 +08:00
Jakub Kadlcik 5fbfc359b4 vterm: prevent moving the cursor below the last prompt line by `j' button
It is not 100% bulletproof but we don't have any function telling us
the point or line number of the last prompt, and it doesn't seem to be
easy to implement, so I needed to workaround this.
2023-02-14 01:18:16 +08:00
Jakub Kadlcik 5016959285 vterm: fix the `x' key, currently it does nothing
Currently, pressing the `x` key in normal mode does nothing. I don't
know much about `:motion` but AFAIK `evil-delete-char` doesn't
exist. Using `evil-forward-char` fixes the issue.
2023-01-27 23:03:10 -05:00
James Nguyen d461f459f4 Change package-requires to 26.3
25 was already deprecated a year ago:

https://github.com/emacs-evil/evil-collection/pull/508/files
2022-06-06 20:53:16 -04:00
Jakub Kadlcik ac01ae2803 vterm: remove trailing whitespace 2022-06-04 09:49:17 -07:00
Jakub Kadlcik 2aad44d836 vterm: when deleting command with `dd`, reset cursor after prompt
The original `evil-first-non-blank` isn't usable because the beginning
of the prompt is the first non-blank character. Strangely enough,
`vterm-beginning-of-line` didn't work either.
2022-06-04 09:49:17 -07:00
Quang Luong f40a39e8a4 vterm: change "x" to evil-delete-char 2022-06-01 08:23:32 -07:00
Quang Luong fe11bdd7dd Correct cursor position when evil-append in vterm 2022-06-01 08:22:50 -07:00
Jakub Kadlcik ca4c617224 vterm: fix paste-before and add paste-after command
The `vterm-yank` that is currently bound to `p` actually pastes before
the cursor, so I am rebinding it to `P` and adding a function for
pasting after the cursor.
2022-05-02 01:12:34 +08:00
Jakub Kadlcik 3d853e67af vterm: use ^ for jumping at the beginning of the command but after prompt
We have `0` for jumping at the very first character of the current
line and `^` for jumping to the non-blank character. It is useful to
keep this distinction in `vterm` buffers. However, it doesn't make
much sense in the command part. Because we have a prompt, both of the
commands jump to the very first character. I think it would be more
useful to change `^` to jump to the first non-blank character after
the prompt.
2022-05-02 01:11:49 +08:00
Jakub Kadlcik 205d43f1a0 vterm: add vterm-substitute and vterm-substitute-line
I baesd the implementation on `evil-substitute` and
`evil-change-whole-line`.
2022-04-28 13:24:45 +08:00
Elliott Shugerman b45ec5b315 vterm | add change, change-line 2021-03-22 20:10:27 -07:00
Michael Lingelbach be3e955f06 vterm: add additional evil bindings 2021-01-30 00:29:42 -08:00
Pierre Neidhardt 9b334150a1 vterm: Remove hook since upstream has vterm-kill-buffer-on-exit. 2020-06-04 17:19:59 +02:00
Alex Griffin d2a1d14f85 Add delete and prev/next prompt bindings for vterm 2020-05-23 08:09:47 +02:00
Kien Nguyen 695e941d8a travis: fix linting 2020-04-26 01:48:44 -07:00
James Nguyen 98ac94bfa8 Vterm: Use _ 2020-01-25 14:10:31 -08:00
Sunn Yao 21d7553ab0 vterm-exit-functions now sends event as 2nd arg. 2019-12-09 19:32:45 -08:00
Jonathan Lai aec0ecbb86 Move mode files: evil-collection-*.el -> modes/*/evil-collection-*.el 2019-10-09 19:41:45 -07:00