Skip to content

Table of content not visible in file mode, nor diff for _added_ file. #892

Description

@abourget

Navigating the table of content of a Markdown document is becoming of paramount importance for me.
I see the t shortcut, it says in file-mode. I've booted crit myfile.md.. I assume that to be file mode.. and I'd love to see the table of content, but it doesn't work.
Also, when a new .md file is added to the repository, it's a full file, so I'd assume it would be fairly easy to add a TOC view in that case too. Would that be inferred to be file mode ? Would be helpful.

thanks for the great software!

Activity

  1. changed the title [-]Table of content[/-] [+]Table of content not visible in file mode, nor diff for _added_ file.[/+] on Sep 4, 2026
  2. tomasz-tomczyk commented on Sep 4, 2026

    @tomasz-tomczyk
    Owner

    Hi! Sorry you're having an issue with this

    Can you clarify if you're typing crit myfile.md in your terminal or in a LLM agent chat?

    If you can share a screenshot of what the UI looks like (feel free to blur anything sensitive) that might help too

    I assume you might be seeing something like this?

    Image

    This technically is the "diff" mode which focuses on diffs and the markdown rendering there isn't as fleshed out as pure "file" mode. I can look into adding the TOC there.

  3. tomasz-tomczyk commented on Sep 25, 2026

    @tomasz-tomczyk
    Owner

    Hello! I'm going to close it as I'd need a little bit more input to understand the issue/your needs. Please do reopen though if you feel like it's still a problem! 🫶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions