Skip to content

Change task hash format from parentheses to backticks#33

Open
clobrano wants to merge 4 commits into
mainfrom
claude/focused-hamilton-lGnAY
Open

Change task hash format from parentheses to backticks#33
clobrano wants to merge 4 commits into
mainfrom
claude/focused-hamilton-lGnAY

Conversation

@clobrano

@clobrano clobrano commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

Updated the task hash display format throughout the codebase from parentheses (hash) to backticks `hash`. This change affects how task hashes are rendered, extracted, and copied in the Frontline task management interface.

Key Changes

  • mappings.lua: Updated hash extraction regex pattern to match backtick-delimited hashes instead of parentheses, and changed the copy task format to use backticks
  • init.lua: Updated the search string pattern when refreshing the current buffer to look for backtick-delimited hashes
  • renderer.lua: Changed task hash formatting in the format_task function to wrap hashes in backticks instead of parentheses

Implementation Details

  • The hash pattern matching now uses `([a-f0-9]+)` instead of %(([a-f0-9]+)%)%s*$
  • All three files were updated consistently to ensure the hash format is uniform across rendering, extraction, and searching operations
  • The backtick format provides better visual distinction and is more consistent with markdown syntax conventions

https://claude.ai/code/session_01HuYbyYvM2aYDGCRT7Eakmk

claude added 4 commits June 4, 2026 09:17
The renderer, hash parser, copy function, and buffer search all used
parenthesized hashes. Switched to backtick-delimited format consistently.

https://claude.ai/code/session_01HuYbyYvM2aYDGCRT7Eakmk
Removed the end-of-line anchor so the backtick-wrapped hash is found
regardless of its position in the line.

https://claude.ai/code/session_01HuYbyYvM2aYDGCRT7Eakmk
resolve_workspace_rc now checks that entry.rc is a string before passing
it to vim.fn.expand. get_workspace_rc_with_override also rejects
non-string workspace values early.

https://claude.ai/code/session_01HuYbyYvM2aYDGCRT7Eakmk
The type guards added to resolve_workspace_rc and
get_workspace_rc_with_override caused E731 errors during BufReadPost.
Reverting to original workspace resolution logic.

https://claude.ai/code/session_01HuYbyYvM2aYDGCRT7Eakmk
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