Skip to content

feat(tui): add /edit slash command to open changed files in $EDITOR#17644

Open
joeyism wants to merge 5 commits intoanomalyco:devfrom
joeyism:dev
Open

feat(tui): add /edit slash command to open changed files in $EDITOR#17644
joeyism wants to merge 5 commits intoanomalyco:devfrom
joeyism:dev

Conversation

@joeyism
Copy link
Copy Markdown

@joeyism joeyism commented Mar 15, 2026

Issue for this PR

Closes #17643

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When the user runs /edit, it opens up all the files edited in this opencode session in $EDITOR editor

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

I tested it locally. See recording below

Screenshots / recordings

opencode-edit-2026-03-15_12.05.56.mp4

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found one potentially related PR:

Related PR:

The current PR (17644) adds /edit to open changed files, while PR #11595 adds /edit-last to open the last assistant message. These are complementary features rather than duplicates, but they're related in implementation and purpose.

@joeyism
Copy link
Copy Markdown
Author

joeyism commented Mar 15, 2026

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No "Type of change" checkbox is checked. Please select at least one.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

fixed. Sorry malformed markdown

@joeyism
Copy link
Copy Markdown
Author

joeyism commented Mar 15, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found one potentially related PR:

Related PR:

The current PR (17644) adds /edit to open changed files, while PR #11595 adds /edit-last to open the last assistant message. These are complementary features rather than duplicates, but they're related in implementation and purpose.

I think that's different. This PR is to edit actual files that's been modified in this session. The cited PR is for editing last assistant message

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Run /edit (or something like that) to open files that's been edited in this session

1 participant