Repository navigation
Open file and diff views with long lines wrapped - #297
Merged
Merged
Conversation
A new, reopened, or restored file tab and a new diff tab now start with Wrap on. Diff views gain the same per-tab Wrap toggle file views have: the core's file_view event accepts a diff tab, and the patch view keeps the full-width row bands under a horizontal scroll only when Wrap is off.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
긴 줄이 있는 파일을 열면 가로 스크롤이 생겨서 매번 Wrap을 눌러야 했습니다.
이제 파일 뷰와 Diff 뷰 모두 새로 열거나, 닫았다 다시 열거나, 앱을 재시작하면 Wrap이 켜진 상태로 시작합니다.
Diff 뷰에도 파일 뷰와 같은 Wrap 토글을 달아, 탭마다 끌 수 있게 했습니다.
Wrap을 끄면 예전처럼 추가/삭제 줄 배경이 가로 스크롤 끝까지 이어집니다.
Review
diff --git헤더 줄도 접힙니다.herdr-core/src/runtime/events.rs-file_view이벤트가 이제 Diff 탭도 받습니다(runtime mutex 안, 필드 두 개만 씀).Evidence
web/e2e/view-wrap.spec.ts가 격리된 Herdr+hided+브라우저에서 파일·Diff 모두 기본 Wrap(가로 넘침 없음), 토글 후 가로 넘침과 Diff 줄 배경 폭을 확인. 스크린샷 두 장을 눈으로 확인.verify-cargo.sh test -p herdr-core1082개 중 1081 통과. 실패 1개(gh_boundary...)는 web 레인과 동시 실행 중 1초 타임아웃이 난 것으로, 단독 재실행에서 통과.verify-web.sh통과(web 735, desktop 72, typecheck/lint/build). e2es3,s4,view-wrap36개 통과.verify-cargo.sh lint(fmt + clippy-D warnings) 통과.