Skip to content

Add native commands supports to every modules#120

Open
Bricklou wants to merge 12 commits into
DigitalPulseSoftware:masterfrom
Bricklou:feature/commands-enhancement
Open

Add native commands supports to every modules#120
Bricklou wants to merge 12 commits into
DigitalPulseSoftware:masterfrom
Bricklou:feature/commands-enhancement

Conversation

@Bricklou

@Bricklou Bricklou commented Jul 4, 2026

Copy link
Copy Markdown

Currently, NaB only support message commands. This PR is here to provide a support for a subset of common commands for a better user experience.

@Bricklou Bricklou marked this pull request as ready for review July 4, 2026 12:51
Comment thread module_prune.lua Outdated
Comment thread module_prune.lua Outdated
Comment thread module_prune.lua
table.remove(messagesToDelete[#messagesToDelete], #messagesToDelete[#messagesToDelete])
-- Text command invocation posts a message right after the range we just fetched; strip it.
-- Context-menu invocations don't post one, so this must stay conditional.
if (trimInvokingMessage) then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

useless since "true" is hardcoded by caller

@Bricklou Bricklou Jul 4, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I added comments on each call sites

@Elanis Elanis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What started out as a code review ended up turning into an english-focused review 😅

Comment thread module_message.lua Outdated
Comment thread module_message.lua Outdated
Comment thread module_message.lua Outdated
Comment thread module_message.lua Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@Bricklou Bricklou requested a review from Equinox4 July 4, 2026 19:38
@Bricklou Bricklou force-pushed the feature/commands-enhancement branch from bcd34f4 to a80865d Compare July 6, 2026 18:23

@Elanis Elanis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Equinox4 Equinox4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

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.

3 participants