V0.6.0 #6

Merged
irammini merged 25 commits from feat/new-prompt-types into main 2026-01-30 05:16:44 +00:00
irammini commented 2026-01-29 00:19:42 +00:00 (Migrated from github.com)

New prompt types

New prompt types
irammini commented 2026-01-29 00:20:05 +00:00 (Migrated from github.com)

In these first three prompt types:

  • Implemented FormPrompt for multi-field input with validation and proper navigation (Tab/Shift+Tab).
  • Implemented SnippetPrompt for template filling with variable constraints and navigation.
  • Enhanced ListPrompt with tag wrapping, improved backspace behavior (pop to buffer), and dual-state Enter logic.
  • Registered new prompts in MepCLI facade.
  • Updated README.md and example.ts with documentation and demos.
  • Added necessary types in src/types.ts.
In these first three prompt types: - Implemented `FormPrompt` for multi-field input with validation and proper navigation (Tab/Shift+Tab). - Implemented `SnippetPrompt` for template filling with variable constraints and navigation. - Enhanced `ListPrompt` with tag wrapping, improved backspace behavior (pop to buffer), and dual-state Enter logic. - Registered new prompts in `MepCLI` facade. - Updated `README.md` and `example.ts` with documentation and demos. - Added necessary types in `src/types.ts`.
irammini commented 2026-01-29 02:22:51 +00:00 (Migrated from github.com)

In this commit:

  • Implemented CodePrompt for multiline code editing with syntax highlighting.
  • Implemented MaskedPrompt for fixed-pattern input (e.g., phone numbers).
  • Implemented TreeSelectPrompt for hierarchical multi-selection with cascading checkboxes.
  • Added highlightJson utility in src/highlight.ts. (experimental)
  • Exposed new prompts via MepCLI facade in src/core.ts.
  • Added types in src/types.ts.
In this commit: - Implemented `CodePrompt` for multiline code editing with syntax highlighting. - Implemented `MaskedPrompt` for fixed-pattern input (e.g., phone numbers). - Implemented `TreeSelectPrompt` for hierarchical multi-selection with cascading checkboxes. - Added `highlightJson` utility in `src/highlight.ts`. (experimental) - Exposed new prompts via `MepCLI` facade in `src/core.ts`. - Added types in `src/types.ts`.
irammini commented 2026-01-29 11:20:19 +00:00 (Migrated from github.com)

In this commit:

Range Prompt:

  • Implemented RangePrompt for dual-handle slider selection
  • Added RangeOptions to types
  • Exposed RangePrompt in MepCLI
  • Added ANSI.REVERSE for active handle highlighting

Transfer Prompt:

  • Implemented TransferPrompt for dual-list item transfer
  • Added TransferOptions to types
  • Exposed TransferPrompt in MepCLI
  • Fixed alignment logic in TransferPrompt render
  • Implemented independent scrolling and cursor states for split-pane UI
In this commit: Range Prompt: - Implemented RangePrompt for dual-handle slider selection - Added RangeOptions to types - Exposed RangePrompt in MepCLI - Added ANSI.REVERSE for active handle highlighting Transfer Prompt: - Implemented TransferPrompt for dual-list item transfer - Added TransferOptions to types - Exposed TransferPrompt in MepCLI - Fixed alignment logic in TransferPrompt render - Implemented independent scrolling and cursor states for split-pane UI
irammini commented 2026-01-29 11:37:50 +00:00 (Migrated from github.com)

In this commit:

  • Implemented CronPrompt for interactive cron schedule building
  • Added CronOptions to types
  • Exposed CronPrompt in MepCLI
  • Updated README.md and example.ts to include Range, Transfer, and Cron prompts
In this commit: - Implemented CronPrompt for interactive cron schedule building - Added CronOptions to types - Exposed CronPrompt in MepCLI - Updated README.md and example.ts to include Range, Transfer, and Cron prompts
irammini commented 2026-01-29 13:20:30 +00:00 (Migrated from github.com)

In this commit:

  • Added CalendarPrompt for date/range selection with a visual grid.
  • Added GridPrompt for 2D boolean matrix selection.
  • Added ColorPrompt for RGB color selection with ANSI TrueColor preview.
  • Exposed new prompts via MepCLI static methods.
  • Updated types.ts with new option interfaces.
In this commit: - Added `CalendarPrompt` for date/range selection with a visual grid. - Added `GridPrompt` for 2D boolean matrix selection. - Added `ColorPrompt` for RGB color selection with ANSI TrueColor preview. - Exposed new prompts via `MepCLI` static methods. - Updated `types.ts` with new option interfaces.
irammini commented 2026-01-29 13:48:42 +00:00 (Migrated from github.com)

In this commit:

  • Implemented handleMouse in GridPrompt for vertical scrolling (row navigation).
  • Implemented handleMouse in ColorPrompt for vertical scrolling (channel switching).
In this commit: - Implemented `handleMouse` in `GridPrompt` for vertical scrolling (row navigation). - Implemented `handleMouse` in `ColorPrompt` for vertical scrolling (channel switching).
irammini commented 2026-01-29 14:33:17 +00:00 (Migrated from github.com)

In this commit:

  • Added shift, ctrl, meta modifier support to MouseEvent and InputParser.
  • Implemented advanced keyboard navigation for CalendarPrompt:
    • PageUp/PageDown: Jump by month.
    • Ctrl+Up/Down: Jump by year.
    • Home/End: Jump to first/last day of month.
    • t: Jump to today.
    • Mouse: Shift+Scroll (Year), Ctrl+Scroll (Day).
  • Implemented advanced navigation and selection for GridPrompt:
    • PageUp/PageDown: Jump to first/last row.
    • Home/End: Jump to first/last column.
    • Bulk selection keys: r (row), c (column), a (all), x (none), i (invert).
    • Mouse: Shift+Scroll (Horizontal scroll).
In this commit: - Added `shift`, `ctrl`, `meta` modifier support to `MouseEvent` and `InputParser`. - Implemented advanced keyboard navigation for `CalendarPrompt`: - `PageUp`/`PageDown`: Jump by month. - `Ctrl+Up`/`Down`: Jump by year. - `Home`/`End`: Jump to first/last day of month. - `t`: Jump to today. - Mouse: Shift+Scroll (Year), Ctrl+Scroll (Day). - Implemented advanced navigation and selection for `GridPrompt`: - `PageUp`/`PageDown`: Jump to first/last row. - `Home`/`End`: Jump to first/last column. - Bulk selection keys: `r` (row), `c` (column), `a` (all), `x` (none), `i` (invert). - Mouse: Shift+Scroll (Horizontal scroll).
irammini commented 2026-01-29 16:29:41 +00:00 (Migrated from github.com)

In this commit:

  • Removed Shift+Scroll handling in CalendarPrompt (year navigation).
  • Updated README.md to reflect the removal of Shift+Scroll.
  • Added keyboard shortcut documentation for Checkbox, MultiSelect, Transfer, Tree, and TreeSelect prompts in README.md.
  • And some other small changes.
In this commit: - Removed Shift+Scroll handling in CalendarPrompt (year navigation). - Updated README.md to reflect the removal of Shift+Scroll. - Added keyboard shortcut documentation for Checkbox, MultiSelect, Transfer, Tree, and TreeSelect prompts in README.md. - And some other small changes.
irammini commented 2026-01-29 16:32:16 +00:00 (Migrated from github.com)

There seems to be a bug with the TreeSelect prompt; I'll check it tomorrow. (Fixed)

There seems to be a bug with the TreeSelect prompt; I'll check it tomorrow. (Fixed)
irammini commented 2026-01-30 02:34:22 +00:00 (Migrated from github.com)

In this commit:

  • Renamed unused function arguments, caught exceptions, and variables with a _ prefix to satisfy @typescript-eslint/no-unused-vars.
  • Fixed unnecessary escape characters in regular expressions in src/highlight.ts and src/prompts/number.ts to satisfy no-useless-escape.
  • Removed unused imports and variables in src/core.ts and src/prompts/text.ts.
  • Removed empty block statement in src/prompts/text.ts.
  • Applied these fixes across all prompt implementations (A-Z) and core files.
In this commit: - Renamed unused function arguments, caught exceptions, and variables with a `_` prefix to satisfy `@typescript-eslint/no-unused-vars`. - Fixed unnecessary escape characters in regular expressions in `src/highlight.ts` and `src/prompts/number.ts` to satisfy `no-useless-escape`. - Removed unused imports and variables in `src/core.ts` and `src/prompts/text.ts`. - Removed empty block statement in `src/prompts/text.ts`. - Applied these fixes across all prompt implementations (A-Z) and core files.
irammini commented 2026-01-30 03:13:18 +00:00 (Migrated from github.com)

Tree Select prompt seems to still have a bug on PowerShell (Windows Terminal)

Tree Select prompt seems to still have a bug on PowerShell (Windows Terminal)
Sign in to join this conversation.
No description provided.