Repository navigation
검색 결과 미리보기에 대응하는 일본어 줄 표시 - #22
Merged
Merged
Conversation
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.
영어 검색 결과를 선택하면 일본어 미리보기에서 비교 화면과 같은 번역 줄을 강조합니다. 파일명 옆 줄 번호와 언어별 앞뒤 문맥도 해당 일본어 줄을 기준으로 표시합니다. #11에서 도입한 위치 계산을 재사용했습니다.
검증
F2비교 화면이 모두 4행을 가리키고, 목록에서 영어 10행을 선택하면 일본어 미리보기가 6행으로 이동하는 것을 확인했습니다.go vet ./...,go test -race ./...,go build -o bin/tgrep ./cmd/tgrep통과.