Skip to content

Add voice command for inserting markdown table headers - #2309

Merged
AndreasArvidsson merged 8 commits into
talonhub:mainfrom
FireChickenProductivity:markdown-table-command
Sep 5, 2026
Merged

Add voice command for inserting markdown table headers#2309
AndreasArvidsson merged 8 commits into
talonhub:mainfrom
FireChickenProductivity:markdown-table-command

Conversation

@FireChickenProductivity

Copy link
Copy Markdown
Contributor

This inserts the table header for a markdown table with the given number of columns. It builds a temporary snippet to insert to take advantage of snip next. Note that we could not put this in a .snippet file because the number of placeholders depends on the number of columns.

Comment thread lang/markdown/markdown.py Outdated
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-05T17:02:17.224486Z 8525612 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@AndreasArvidsson
AndreasArvidsson merged commit b23bb38 into talonhub:main Sep 5, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8525612ce6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lang/markdown/markdown.py
snippet_body = "".join(snippet_body_parts)
# directly insert the snippet body.
# Because the number of placeholders varies, we could not do this in a .snippet file.
actions.user.insert_snippet(snippet_body)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add a final snippet stop after the separator

In the default snippet backend used outside VS Code, go_to_next_stop_raw() only moves when another stop exists and otherwise clears the stop stack. Because this generated body ends after the separator without a $0 stop, table header one has no saved next stop at all, and for larger tables the final snip next does nothing, leaving the cursor in the last header cell instead of moving past the separator. Append $0 at the end or use the existing final-stop insertion path.

Useful? React with 👍 / 👎.

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.

2 participants