Skip to content

Add results yank option to copy INSERT statements for all visible rows#17

Merged
koianaoki merged 3 commits into
codex/fix-filter-issue-in-tree-viewfrom
codex/add-copy-function-for-insert-statements
May 22, 2026
Merged

Add results yank option to copy INSERT statements for all visible rows#17
koianaoki merged 3 commits into
codex/fix-filter-issue-in-tree-viewfrom
codex/add-copy-function-for-insert-statements

Conversation

@koianaoki
Copy link
Copy Markdown
Owner

Summary

  • Added a new results yank action yI to copy INSERT statements for all currently visible rows.
  • Kept existing yi behavior for copying a single selected row INSERT statement.
  • Implemented shared INSERT statement builder logic in the results mixin to avoid duplication.
  • Updated help text and leader menu labels to clarify row vs all-rows behavior.

Behavior details

  • yi: copies one INSERT statement for the selected row.
  • yI: copies multiple INSERT statements (one per row) for the currently visible rows.
  • When results are filtered, yI uses only the filtered matching rows.

Files changed

  • sqlit/domains/results/ui/mixins/results.py
  • sqlit/core/keymap.py
  • sqlit/domains/shell/state/machine.py
  • tests/unit/test_results_yank_insert.py

Testing

  • Static updates only in this environment (no test execution performed).

Codex Task

@koianaoki koianaoki merged commit d842f44 into codex/fix-filter-issue-in-tree-view May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant