1. Frank Fischer
  2. evil
Issue #196 resolved

evil-mode register implementation is incomplete.

Anonymous created an issue

evil-mode register implementation is either incomplete or in some cases simply non-functional. eg 1: copying 2 lines to a register i.

"i2yy doesn't copy 2 lines to register i.

eg 2: after doing a search register '/' doesn't contain the last searched string.

Comments (7)

  1. Frank Fischer repo owner

    Support the expression register "=.

    The expression register reads a lisp expression from minibuffer and use the resulting value if the expression evaluates to a string.

    It is a read only register (`evil-set-register' does not change its value).

    This addresses issue #196.

    Wiki macro error: Changeset 91e4fd9e4fcc not found.

  2. Frank Fischer repo owner

    Support the last insertion register ". .

    `evil-track-last-insertion' as a post command hook calculates the last piece of insertion. If two successive commands insert continuous text, the text is treated as a piece of insertion like successive `self-insert-command's fix up their undo information. It uses `evil-last-undo-entry' and `evil-last-insertion-command' to determine whether we have some successive insertion commands.

    The value of the register is not updated until the current insert-state session ends. `evil-current-insertions' has information about insertions in the current insert-state session, which is saved to the register value at the end of the session.

    It is a read only register (`evil-set-register' does not change its value).

    This addresses issue #196.

    Wiki macro error: Changeset d7a2ecaa367f not found.

  3. Frank Fischer repo owner

    Ensure prefix-commands do not clear `evil-this-register'

    Prefix commands like digit-argument' should not influence the register specified for the follow command. This is because both, prefix commands and the register commandevil-use-register', are not full editing commands on their own put used to modify the following "real" command.

    This closes issue #196. This closes issue #193.

    → <<cset c5d9f61d1ee4>>

  4. Log in to comment