repository view should have two modes - history and files #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the current pane view is history, but that should also be switchable to a files view that shows the typical hierarchical view of files in the repository, allowing the user to navigate that tree to a file and show that file. file views should support syntax highlighting for source files and proper views for media files in the repository (so seeing an image view when looking at an icon).
Implemented in
7b2b431: added a native History/Files selector, UIKit navigation-controller folder traversal, HighlighterSwift 3.1.0 with explicit language mapping and automatic detection, non-wrapping horizontally scrollable source views, and Quick Look previews for media/PDF files. Verified Rust and Swift highlighting plus image preview in the iPhone 17 Pro simulator. All required cargo formatting, check, Clippy, and workspace test gates pass. The final signed build was also installed and launched successfully on the connected iPhone 17.Corrected in
f85f955using the native UIKit/TextKit path documented by Apple: a selectable UITextView backed by NSTextStorage/NSTextContainer, explicit clipping instead of the default word wrapping, and scroll content dimensions derived from NSLayoutManager after layout and rotation. HighlighterSwift writes its attributed output through textStorage as recommended by its documentation. Live simulator inspection confirmed a 629 x 1938 pt content area inside a 402 x 874 pt viewport with widthTracksTextView disabled; a 100 pt horizontal offset visibly exposed the continuation of the same unwrapped lines. All required gates pass. The corrected signed build is installed on the iPhone; automatic launch was denied only because the device was locked.Corrected the scrolling renderer in
178094f. Root cause: the previous UITextView had a 629 pt scroll range but retained a 402 pt tiled drawing surface, causing blank/black areas and delayed text tiles. The source viewer now uses one native outer UIScrollView containing a non-scrolling, selectable UITextView whose frame, TextKit container, canvas, and scroll content all share the full 629 x 1938 pt source dimensions. Verified visually at horizontal offsets 0, 100, and the 227 pt right edge with continuous highlighted text and no blank region or jump. All required gates pass; the signed build was installed and launched successfully on the connected iPhone.Completed the Markdown file-view follow-up in
50bb8f9. Markdown files now open in a rendered GitHub-flavored preview by default, with an accessible Preview/Source segmented control; Source reuses the non-wrapping, horizontally scrollable HighlighterSwift view. Verified Preview → Source → Preview on README.md in the iPhone 17 Pro simulator. All required cargo fmt/check/clippy/test gates and both simulator/device Xcode builds passed; the signed build was installed and launched on the connected iPhone.