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.
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.
The directory is called "smerge" while the configuration file uses "smerge-mode". This inconsistency means that you cannot use evil-collection-require to load the feature.
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.
This commit changes the normal-mode binding for `C` to `archive-copy-file` (which extracts, or copies, the file under cursor to the filesystem) from `archive-chown-entry` (which changes the file owner), and adds a new binding for the latter on `O`.
Understandably, `O` has a pre-existing meaning in Vi for normal mode, but is quite useless in `arc-mode`, since these buffers are declared read-only by default, and having them be read-write does nothing.
The intention behind this commit providing a straightforward way for file extraction to happen in `arc-mode` under Evil, a (presumably) common operation. Additionally, these new bindings now mirror those used in Emacs for `arc-mode`, as well as Emacs and Evil bindings for `tar-mode`; these improvements are likely worth the user-facing change made.
These bindings are similar to Dired.
- The commands `gited-hide-details-mode` and `gited-summary` are not autoloaded,
so we use `declare-function`.
- The command `gited-list-branches` was bound to `C-x g`. We bind it to
`C-x C-b`.
- Commands that open a new window are now prefixed by `g`, except for
`gited-change-current-remote-rep` on `gR`.
- Commands that don't do anything related to marks were moved out of the `*`
prefix.
- The commands for stashing were prefixed by `*s`. Since they don't operate
on marks or marked rows, they were moved to `s`.
- The commands for tags were moved from `*t` to `C-t`, similar to Dired's
thumbnail commands. These commands also don't work on marked rows.
- The command `gited-mark-branches-by-date` is bound to `%t` (for "time"?), as
in the original map. There is no command for flagging by regexp, which would
be on `%d`.
It does not make sense to repeat these commands via evil-repeat. (It
also doesn't work) We typically use evil-repeat for commands that
change the buffer contents.