Skip to content

runtime(jjdescription): improve status line highlighting and add support for renames#19879

Closed
jstemmer wants to merge 2 commits intovim:masterfrom
jstemmer:push-uryvlrykxzvv
Closed

runtime(jjdescription): improve status line highlighting and add support for renames#19879
jstemmer wants to merge 2 commits intovim:masterfrom
jstemmer:push-uryvlrykxzvv

Conversation

@jstemmer
Copy link
Copy Markdown
Contributor

@jstemmer jstemmer commented Apr 1, 2026

The regex for highlighting jj status lines was a bit too broad, frequently highlighting lines that weren't actually status lines in my commit descriptions. I've made the regex a bit more strict to prevent this.

I also added support for highlighting renamed files (these lines look like R {old.txt => new.txt}).

jstemmer added 2 commits April 1, 2026 11:04
The regex for status line highlighting was too broad, `jjComment` lines
containing e.g. the letter 'A' followed by a space anywhere in the line
were highlighted.
`jj status` output uses the 'R' prefix for renamed files.
@chrisbra
Copy link
Copy Markdown
Member

chrisbra commented Apr 3, 2026

ping @gpanders

Copy link
Copy Markdown
Contributor

@gpanders gpanders left a comment

Choose a reason for hiding this comment

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

LGTM

@chrisbra
Copy link
Copy Markdown
Member

chrisbra commented Apr 9, 2026

thanks

chrisbra pushed a commit that referenced this pull request Apr 9, 2026
The regex for status line highlighting was too broad, `jjComment` lines
containing e.g. the letter 'A' followed by a space anywhere in the line
were highlighted.

related: #19879

Signed-off-by: Joël Stemmer <jstemmer@google.com>
Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
@chrisbra chrisbra closed this in f554a7c Apr 9, 2026
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Apr 10, 2026
…tart of line

The regex for status line highlighting was too broad, `jjComment` lines
containing e.g. the letter 'A' followed by a space anywhere in the line
were highlighted.

related: vim/vim#19879

vim/vim@9598174

Co-authored-by: Joël Stemmer <jstemmer@google.com>
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Apr 10, 2026
…med' status lines

`jj status` output uses the 'R' prefix for renamed files.

closes: vim/vim#19879

vim/vim@f554a7c

Co-authored-by: Joël Stemmer <jstemmer@google.com>
@jstemmer
Copy link
Copy Markdown
Contributor Author

Thanks!

ellisonleao pushed a commit to ellisonleao/neovim that referenced this pull request Apr 10, 2026
…tart of line

The regex for status line highlighting was too broad, `jjComment` lines
containing e.g. the letter 'A' followed by a space anywhere in the line
were highlighted.

related: vim/vim#19879

vim/vim@9598174

Co-authored-by: Joël Stemmer <jstemmer@google.com>
ellisonleao pushed a commit to ellisonleao/neovim that referenced this pull request Apr 10, 2026
…med' status lines

`jj status` output uses the 'R' prefix for renamed files.

closes: vim/vim#19879

vim/vim@f554a7c

Co-authored-by: Joël Stemmer <jstemmer@google.com>
MariaSolOs pushed a commit to MariaSolOs/neovim that referenced this pull request Apr 15, 2026
…tart of line

The regex for status line highlighting was too broad, `jjComment` lines
containing e.g. the letter 'A' followed by a space anywhere in the line
were highlighted.

related: vim/vim#19879

vim/vim@9598174

Co-authored-by: Joël Stemmer <jstemmer@google.com>
MariaSolOs pushed a commit to MariaSolOs/neovim that referenced this pull request Apr 15, 2026
…med' status lines

`jj status` output uses the 'R' prefix for renamed files.

closes: vim/vim#19879

vim/vim@f554a7c

Co-authored-by: Joël Stemmer <jstemmer@google.com>
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.

3 participants