mirror of
https://github.com/m1ngsama/TUT.git
synced 2025-12-24 10:51:46 +00:00
Major improvements to link handling and navigation: Features: - Display links inline with numbered indicators [0], [1], etc. - Quick navigation: type number + Enter to jump to link - Fast follow: press 'f' + number to open link directly - Visual improvements: links shown with underline and highlight - Remove separate link list at bottom for better readability Technical changes: - Add InlineLink structure to track link positions in text - Implement wrap_text_with_links() for intelligent text wrapping - Add GOTO_LINK and FOLLOW_LINK_NUM actions - Implement LINK input mode for 'f' command - Character-by-character rendering for proper link highlighting - Update help documentation with new navigation methods Usage examples: - 3<Enter> : Jump to link 3 - f5 or 5f : Open link 5 directly - Tab/Enter : Traditional navigation still works All comments converted to standard Unix style (English).
24 lines
1 KiB
HTML
24 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test Inline Links</title>
|
|
</head>
|
|
<body>
|
|
<h1>Test Page for Inline Links</h1>
|
|
|
|
<p>This is a paragraph with an <a href="https://example.com">inline link</a> in the middle of the text. You should be able to see the link highlighted directly in the text.</p>
|
|
|
|
<p>Here is another paragraph with multiple links: <a href="https://google.com">Google</a> and <a href="https://github.com">GitHub</a> are both popular websites.</p>
|
|
|
|
<p>This paragraph has a longer link text: <a href="https://en.wikipedia.org">Wikipedia is a free online encyclopedia</a> that anyone can edit.</p>
|
|
|
|
<h2>More Examples</h2>
|
|
|
|
<p>Press Tab to navigate between links, and Enter to follow them. The links should be <a href="https://example.com/test1">highlighted</a> directly in the text, not listed separately at the bottom.</p>
|
|
|
|
<ul>
|
|
<li>List item with <a href="https://news.ycombinator.com">Hacker News</a></li>
|
|
<li>Another item with <a href="https://reddit.com">Reddit</a></li>
|
|
</ul>
|
|
</body>
|
|
</html>
|