Skip to content

Visit files and run shell commands from chat#250

Merged
dnouri merged 8 commits into
masterfrom
feature/chat-file-actions
Jul 21, 2026
Merged

Visit files and run shell commands from chat#250
dnouri merged 8 commits into
masterfrom
feature/chat-file-actions

Conversation

@dnouri

@dnouri dnouri commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Files mentioned in chat are now one keystroke away.

RET on a file target opens it:

  • a file-content row in tool output, at the matching line
  • a plain path like src/app.el:12:3, at that line and column
  • the label of a local Markdown link

By default the file opens in the other window; C-u RET flips that for one visit.

! runs a Dired-inspired shell command on the file at point. Simple commands like wc -l or file get the file appended automatically and safely quoted; anything fancier uses an explicit * placeholder, e.g. wc -c * | cat.

Everything fails closed: prose, tool headers, and ambiguous text simply don't resolve, so RET never opens something you didn't mean.

Full details in the README section on file targets.

@dnouri
dnouri merged commit add73ab into master Jul 21, 2026
11 checks passed
@dnouri
dnouri deleted the feature/chat-file-actions branch July 21, 2026 08:10
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.

1 participant