Skip to content

Address issue #314: Help Menu Behaviors#319

Merged
schuyler merged 2 commits into
mainfrom
claude/resolve-issue-314-UEPFr
Feb 18, 2026
Merged

Address issue #314: Help Menu Behaviors#319
schuyler merged 2 commits into
mainfrom
claude/resolve-issue-314-UEPFr

Conversation

@schuyler

@schuyler schuyler commented Feb 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stop forcing Help, Contributing, and URL-scheme-opened documents to fill the entire visible screen. Instead, let the standard document window sizing logic handle it — new windows open at the default XIB size (1024x578) centered on screen, and documents opened as tabs in existing windows leave the window size unchanged.
  • Add a "MacDown 3000 on GitHub" menu item to the Help menu (with separator) that opens https://github.com/schuyler/macdown3000 in the default browser.

Related Issue

Related to #314

Changes

MacDown/Code/Application/MPMainController.m

  • MPOpenBundledFile(): Replaced the custom completion handler that forced [NSScreen mainScreen].visibleFrame sizing with MPDocumentOpenCompletionEmpty (no-op). This lets MPDocument.windowControllerDidLoadNib: handle sizing naturally.
  • openUrlSchemeAppleEvent:withReplyEvent:: Same fix — removed forced full-screen sizing for documents opened via x-macdown:// URL scheme.
  • openGitHub:: New IBAction that opens the project GitHub URL in the default browser.

MacDown/Localization/Base.lproj/MainMenu.xib

  • Added a separator and "MacDown 3000 on GitHub" menu item to the Help menu, wired to openGitHub: on MPMainController.

Manual Testing Plan

  1. Help/Contributing in new window: Open Help or Contributing with no existing windows — should open at ~1024x578, centered, not full-screen.
  2. Help/Contributing as tab: With "Prefer tabs" set to "Always" in System Settings, open Help while another document is open — existing window should not resize. Closing the Help tab should leave the window unchanged.
  3. GitHub menu item: Help > MacDown 3000 on GitHub should open the repository URL in the default browser.
  4. First launch: Simulate fresh install — both Help and Contributing should open at default size.
  5. Multiple monitors: Help should open at default size on the main screen, not stretched.
  6. URL scheme: Documents opened via x-macdown://open?url=... should no longer force full-screen sizing.

Stop forcing Help and Contributing documents to fill the entire
visible screen. Instead, let the standard document window sizing
logic handle it — new windows open at the default size (1024x578)
centered on screen, and tabbed windows keep their existing size.

Also add a "MacDown 3000 on GitHub" menu item to the Help menu
that opens the project repository in the default browser.

Related to #314

https://claude.ai/code/session_01Qm5muspbe4LDuGqPZPmyWD
Apply the same fix to openUrlSchemeAppleEvent: — stop forcing
documents opened via x-macdown:// URL scheme to fill the entire
visible screen. Let standard document window sizing handle it.

Related to #314

https://claude.ai/code/session_01Qm5muspbe4LDuGqPZPmyWD
@github-actions

github-actions Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Report

Current Coverage: 54.52%

Coverage Details (Summary)
Name                                                                                                                                   Coverage            
-------------------------------------------------------------------------------------------------------------------------------------- ------------------- 
MASPreferences.bundle                                                                                                                  0.00% (0/0)         
MacDown 3000.app                                                                                                                       59.04% (7847/13292) 
    /Users/runner/work/macdown3000/macdown3000/MacDown/Code/Extension/DOMNode+Text.m                                                   0.00% (0/94)        
        -[NSString(WordCount) numberOfWords]                                                                                           0.00% (0/11)        
        __36-[NSString(WordCount) numberOfWords]_block_invoke                                                                          0.00% (0/3)         
        -[NSString(WordCount) lengthWithoutNewlines]                                                                                   0.00% (0/11)        
        __44-[NSString(WordCount) lengthWithoutNewlines]_block_invoke                                                                  0.00% (0/3)         
        -[NSString(WordCount) lengthWithoutWhitespacesAndNewlines]                                                                     0.00% (0/11)        
        __58-[NSString(WordCount) lengthWithoutWhitespacesAndNewlines]_block_invoke                                                    0.00% (0/3)         
        MPGetChildrenNodetextCount                                                                                                     0.00% (0/6)         
        MPGetNodeTextCount                                                                                                             0.00% (0/38)        
        -[DOMNode(Text) textCount]                                                                                                     0.00% (0/8)         
    /Users/runner/work/macdown3000/macdown3000/MacDown/Code/Document/MPAsset.m                                                         93.69% (104/111)    
        -[MPAsset typeName]                                                                                                            100.00% (3/3)       
        -[MPAsset defaultTypeName]                                                                                                     100.00% (3/3)       
        +[MPAsset assetWithURL:andType:]                                                                                               100.00% (3/3)       
        -[MPAsset initWithURL:andType:]                                                                                                87.50% (7/8)        
        -[MPAsset init]                                                                                                                100.00% (3/3)       
        -[MPAsset templateForOption:]                                                                                                  0.00% (0/6)         
        -[MPAsset htmlForOption:]                                                                                                      100.00% (28/28)     
        -[MPStyleSheet defaultTypeName]                                                                                                100.00% (3/3)       
        +[MPStyleSheet CSSWithURL:]                                                                                                    100.00% (3/3)       
        -[MPStyleSheet templateForOption:]                                                                                             100.00% (20/20)     
        -[MPScript defaultTypeName]                                                                                                    100.00% (3/3)       
        +[MPScript javaScriptWithURL:]                                                                                                 100.00% (3/3)       
        -[MPScript templateForOption:]                                                                                                 100.00% (20/20)     
        -[MPEmbeddedScript htmlForOption:]                                                                                             100.00% (5/5)       
    /Users/runner/work/macdown3000/macdown3000/MacDown/Code/Utility/FileURLInlining.m                                                  26.60% (25/94)      
        +[FileURLInlining inlineFromIterable:]                                                                                         0.00% (0/11)        
        -[FileURLInlining initWithURL:]                                                                                                0.00% (0/6)         
        -[FileURLInlining init]                                                                                                        100.00% (3/3)       
        -[FileURLInlining inlineContent]                                                                                               0.00% (0/9)         
        -[FileURLInlining imageContent]                                                                                                0.00% (0/12)        
        +[FileURLInlining mimeTypeForFilePath:]                                                                                        100.00% (22/22)     
        -[FileURLInlining clippingContent]                                                                                             0.00% (0/4)         
        +[FileURLInlining isTextClippingAtPath:]                                                                                       0.00% (0/12)        
        +[FileURLInlining textContentFromClipping:]                                                                                    0.00% (0/15)        
    /Users/runner/work/macdown3000/macdown3000/Dependency/peg-markdown-highlight/HGMarkdownHighlightingStyle.m                         87.69% (57/65)      
        +[HGMarkdownHighlightingStyle colorFromARGBColor:]                                                                             100.00% (6/6)       
        -[HGMarkdownHighlightingStyle initWithType:attributesToAdd:toRemove:fontTraitsToAdd:]                                          88.89% (8/9)        
        -[HGMarkdownHighlightingStyle initWithStyleAttributes:baseFont:]                                                               86.00% (43/50)      
    /Users/runner/work/macdown3000/macdown3000/MacDown/Code/Extension/hoedown_html_patch.c                                             86.47% (115/133)    
        hoedown_patch_reset_checkbox_index                                                                                             100.00% (3/3)       
        hoedown_patch_get_checkbox_index                                                                                               0.00% (0/3)         
        hoedown_patch_render_blockcode                                                                                                 89.09% (49/55)      
        hoedown_patch_render_listitem                                                                                                  100.00% (44/44)     
        hoedown_patch_render_toc_header                                                                                                67.86% (19/28)      
    /Users/runner/work/macdown3000/macdown3000/MacDown/Code/Application/MPMainController.m                                             41.78% (94/225)     

... (2610 more lines truncated)

📊 **Full coverage report available in workflow artifacts**

@schuyler schuyler merged commit 9cba481 into main Feb 18, 2026
12 of 13 checks passed
@schuyler schuyler deleted the claude/resolve-issue-314-UEPFr branch February 18, 2026 21:09
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