Skip to content

Md link fix pr - #967

Open
opsec-ai wants to merge 9 commits into
charmbracelet:masterfrom
opsec-ai:md_link_fix_pr
Open

Md link fix pr#967
opsec-ai wants to merge 9 commits into
charmbracelet:masterfrom
opsec-ai:md_link_fix_pr

Conversation

@opsec-ai

@opsec-ai opsec-ai commented May 30, 2026

Copy link
Copy Markdown

This Feature Request builds on #883 by fixing errors and bugs, allowing full browsing of the markdown documentation tree with the arrow keys.

  • To make the back arrow keys work, I had to change the receiver types of several functions and update the return values. Follow relative markdown links in the TUI pager (#441) #883 was not working right because functions were working on copies of data and forgetting the nav history.

  • Example test. Create a .test directory and put some markdown in it. Glow will show all files. 'glow -a' also shows markdown in hidden dirs. Press right arrow on an entry and use up and down-arrow keys to navigate the links, just like pinfo (bash).

├── test
│   │   ├── bug_report.md
│   │   └── feature_request.md
├── README.md
├── test.md

  • Before Follow relative markdown links in the TUI pager (#441) #883, glow wouldn't even let me click on local links in the markdown. But there were some issues. I didn't like having to switch between using the arrow keys in the stash and Tab/Enter in the markdown. So I made them both work.

  • I tried to make the local markdown.md file links click-able but link clicking is controlled by the terminal and making that work would require writing a whole new terminal, basically.

screen

aleexharris and others added 9 commits July 16, 2026 17:54
Init(): read body from disk when localPath is set, else from memory

This fixes bugs with the past two commits where links were being
discarded by newModel create when loading markdown file directly,
instead of via the built-in markdown find feature.
Date:      Mon Jun 1 18:37:15 2026 -0800
modified:   ui/ui.go
details: stripAbsolutePath now uses filepath.Rel instead of EvalSymlinks.
        That way symlinks keep their own name in the stash.
        Tests pass.
@opsec-ai

Copy link
Copy Markdown
Author

Fixed merge conflicts with new version

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