Skip to content
Kward Search API index

Module: Kward::PromptInterface::VibeEditorMode

Included in:
Kward::PromptInterface
Defined in:
lib/kward/prompt_interface/editor/modes/vibe.rb

Overview

Vibe-style keymap for the built-in composer file editor.

Defined Under Namespace

Classes: VibeOperatorTarget

Constant Summary collapse

VIBE_SIMPLE_MOTION_KEYS =
[
  "w", "e", "b", "$", "0", "^", "+", "\n", "\r", "-", "_",
  "h", "\b", "\x7F", "j", "k", "l", " ", "{", "}"
].freeze
VIBE_PAIR_TEXT_OBJECTS =
{
  "(" => ["(", ")"], ")" => ["(", ")"], "b" => ["(", ")"],
  "[" => ["[", "]"], "]" => ["[", "]"],
  "{" => ["{", "}"], "}" => ["{", "}"], "B" => ["{", "}"],
  "\"" => ["\"", "\""], "'" => ["'", "'"]
}.freeze
VIBE_RUBY_BLOCK_OPENERS =
%w[if unless case while until for def module class do begin].freeze
VIBE_RUBY_PATHS =
%w[Gemfile Rakefile Guardfile Capfile Vagrantfile].freeze
VIBE_RUBY_EXTENSIONS =
%w[.rb .rake .gemspec].freeze