Skip to content

Vim State Machine #3

@lucamazzza

Description

@lucamazzza
  • Description: The logic that decides if a key should be swallowed or passed through.
  • Acceptance Criteria:
    • Must define Mode enum (Normal, Insert, Visual, Command)
    • Must implement handle_key(key_code, modifiers) function
    • Must follow this logic: if Mode is Insert pass through, else if Mode is Normal and the key is (i.e.) h, swallow it
    • Must implement toggle logic (i => Insert, <esc> => Normal)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions