Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Correctly preview non-text files#1707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@plbstl
Copy link
Contributor

@plbstlplbstl commentedMay 10, 2024
edited
Loading

Description

This PR allows CodeEdit to preview non text files correctly.

All the file formats in the related issue#1698 were tested.

Related Issues

Checklist

  • I read and understood thecontributing guide as well as thecode of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

QuickLook doesn't load until the Git branch shows up:

code-edit-view-file1.mov

plbstl added30 commitsMay 7, 2024 19:15
plbstl added14 commitsMay 10, 2024 08:15
…t work around- the first play click doesn't start the video, but the audio starts playing in the background, even after closing the editor tab- and everything in-between
- NonTextFileView, OtherFileView, URL+isImage, are not needed anymore
- also added the view to the App Window docs
- `WorkspaceAnyFileView` -> `AnyFileView`- `WorkspaceLoadingView` -> `LoadingFileView`- `WorkspaceImageView` -> `ImageFileView`- `WorkspacePDFView` -> `PDFFileView`
@plbstlplbstl changed the titleView non text files correctlyCorrectly preview non-text filesMay 10, 2024
@plbstlplbstlforce-pushed theview-non-text-files-correctly branch from8069cbc todda4d34CompareMay 10, 2024 18:30
- this removes the need to check for GIF images- this also has a nice add-on of using gestures for zoom
@plbstlplbstlforce-pushed theview-non-text-files-correctly branch fromdda4d34 tob373bb6CompareMay 10, 2024 18:32
@thecoolwinter
Copy link
Collaborator

Looks like there's an issue with our CI, it might need an update, which would explain the failing test.

plbstl reacted with thumbs up emoji

@austincondiff
Copy link
Collaborator

Nice work! I can't pull it down now but just so you are aware, images should show full pixels (not scaled up to fit if smaller than window). If it is too big for the window it should scale down to fit. We could later add some small controls to adjust the zoom levels and have buttons for 1x, 2x, and 3x.

plbstl reacted with thumbs up emoji

@plbstl
Copy link
ContributorAuthor

images should show full pixels (not scaled up to fit if smaller than window). If it is too big for the window it should scale down to fit

Yes, this PR does that. Implementing it was really hard for me and it took the most time, but I'm happy it did so without a really complex logic.

CodeEdit/Features/Editor/Views/ImageFileView.swift

austincondiff reacted with thumbs up emoji

Copy link
Collaborator

@austincondiffaustincondiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Perfect! Excellent work!

plbstl reacted with thumbs up emoji
@austincondiffaustincondiff merged commit86b2780 intoCodeEditApp:mainMay 11, 2024
@austincondiff
Copy link
Collaborator

@allcontributors add@plbstl for bug

@allcontributors
Copy link
Contributor

@austincondiff

I've put upa pull request to add@plbstl! 🎉

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@austincondiffaustincondiffaustincondiff approved these changes

@thecoolwinterthecoolwinterthecoolwinter approved these changes

Assignees

No one assigned

Labels

bugSomething isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@plbstl@thecoolwinter@austincondiff

[8]ページ先頭

©2009-2025 Movatter.jp