chamburr / glance Goto Github PK
View Code? Open in Web Editor NEW🔎 All-in-one Quick Look plugin
License: MIT License
🔎 All-in-one Quick Look plugin
License: MIT License
I updated Homebrew yesterday and now Glance doesn't seem to be working. My Markdown files are not being previewed.
"Glance" can't be opened because Apple cannot check it for malicious software
The software needs to be updated.
Contact the developer for more information.
Great tool! Hope there's a fix and thank you!
12.3.1
(Non Arm Mac Book Pro)cd ./HTMLConverter/
GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build --buildmode=c-archive -ldflags "-s -w" -o ./htmlconverter-amd64.a
GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build --buildmode=c-archive -ldflags "-s -w" -o ./htmlconverter-arm64.a
lipo -create -output htmlconverter.a htmlconverter-amd64.a htmlconverter-arm64.a
cp htmlconverter-amd64.h htmlconverter.h
# github.com/chamburr/glance
/usr/local/go/pkg/tool/darwin_amd64/link: running ar failed: exit status 1
/opt/local/bin/ranlib: object: $WORK/b001/exe/a.out.a(go.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
# runtime/cgo
gcc_arm64.S:28:16: error: brackets expression not supported on this target
stp x29, x30, [sp, #-96]!
^
gcc_arm64.S:32:2: error: unknown use of instruction mnemonic without a size suffix
mov x29, sp
^
gcc_arm64.S:34:16: error: brackets expression not supported on this target
stp x19, x20, [sp, #80]
^
gcc_arm64.S:37:16: error: brackets expression not supported on this target
stp x21, x22, [sp, #64]
^
gcc_arm64.S:40:16: error: brackets expression not supported on this target
stp x23, x24, [sp, #48]
^
gcc_arm64.S:43:16: error: brackets expression not supported on this target
stp x25, x26, [sp, #32]
^
gcc_arm64.S:46:16: error: brackets expression not supported on this target
stp x27, x28, [sp, #16]
^
gcc_arm64.S:50:2: error: unknown use of instruction mnemonic without a size suffix
mov x19, x0
^
gcc_arm64.S:51:2: error: unknown use of instruction mnemonic without a size suffix
mov x20, x1
^
gcc_arm64.S:52:2: error: unknown use of instruction mnemonic without a size suffix
mov x0, x2
^
gcc_arm64.S:54:2: error: invalid instruction mnemonic 'blr'
blr x20
^~~
gcc_arm64.S:55:2: error: invalid instruction mnemonic 'blr'
blr x19
^~~
gcc_arm64.S:57:16: error: brackets expression not supported on this target
ldp x27, x28, [sp, #16]
^
gcc_arm64.S:60:16: error: brackets expression not supported on this target
ldp x25, x26, [sp, #32]
^
gcc_arm64.S:63:16: error: brackets expression not supported on this target
ldp x23, x24, [sp, #48]
^
gcc_arm64.S:66:16: error: brackets expression not supported on this target
ldp x21, x22, [sp, #64]
^
gcc_arm64.S:69:16: error: brackets expression not supported on this target
ldp x19, x20, [sp, #80]
^
gcc_arm64.S:72:16: error: brackets expression not supported on this target
ldp x29, x30, [sp], #96
^
fatal error: lipo: can't open input file: htmlconverter-amd64.a (No such file or directory)
cp: htmlconverter-amd64.h: No such file or directory
If anyone searching build for M1, i built it locally, signed for local use. XCode required me change ID to my username else i have no requirements to do this.
This app is signed, just open, should work
Requirements: M1 Big Sur 11.3+
Hi,
How can uninstall Glance.app ?
Many thanks for your answer
Hi,
First, thank you for your work on Glance.
I've an issue with PDF's previews... no morepreview, but not sure Glance is the problem.
To make sure it's a Glance issue or not, do you have a complete uninstall process ?
Thank you in advance.
BR
F
Could the icon be updated to respect the new Guideline since Big Sur.
Squircle like on iOS.
I absolutely love that you're now supporting this. I am, however, having an issue where quicklook does not default to glance for certain applications. This is primarily bothersome for CSVs which use the Excel preview, which is visually a nightmare. I would much rather it loaded with glance.
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 4F45689C-A5E5-4D53-9F4C-9E4186A6D8C7
CrashReporter Key: 66B93514-FCBF-EC00-D25E-8D7E0F2082A0
Hardware Model: MacBookPro16,1
Process: Glance [24942]
Path: /Applications/Glance.app/Contents/MacOS/Glance
Identifier: com.chamburr.Glance
Version: 1.4.0 (7)
Code Type: X86-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: com.chamburr.Glance [20247]
Date/Time: 2021-10-27 15:24:09.1248 +0200
Launch Time: 2021-10-27 15:24:09.0808 +0200
OS Version: macOS 12.0.1 (21A559)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: CODESIGNING 1
Triggered by Thread: 0
Thread 0 Crashed:
0 0x11c99aac0 _dyld_start + 0
1 ??? 0x1 ???
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007ff7b034fc00
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000011c99aac0 rfl: 0x0000000000000200 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0
Binary Images:
0x11c996000 - 0x11ca01fff (*) <1a6ae033-9438-33c0-8077-988fd885250a> ???
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF
-----------
Full Report
-----------
{"app_name":"Glance","timestamp":"2021-10-27 15:24:09.00 +0200","app_version":"1.4.0","slice_uuid":"97153a52-f45d-3cb1-a496-9344a8b610fc","build_version":"7","platform":0,"bundleID":"com.chamburr.Glance","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"4F45689C-A5E5-4D53-9F4C-9E4186A6D8C7","name":"Glance"}
{
"uptime" : 32000,
"procLaunch" : "2021-10-27 15:24:09.0808 +0200",
"procRole" : "Default",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookPro16,1",
"procStartAbsTime" : 32848985186813,
"coalitionID" : 20247,
"osVersion" : {
"train" : "macOS 12.0.1",
"build" : "21A559",
"releaseType" : "User"
},
"captureTime" : "2021-10-27 15:24:09.1248 +0200",
"incident" : "4F45689C-A5E5-4D53-9F4C-9E4186A6D8C7",
"bug_type" : "309",
"pid" : 24942,
"procExitAbsTime" : 32849028243604,
"cpuType" : "X86-64",
"procName" : "Glance",
"procPath" : "\/Applications\/Glance.app\/Contents\/MacOS\/Glance",
"bundleInfo" : {"CFBundleShortVersionString":"1.4.0","CFBundleVersion":"7","CFBundleIdentifier":"com.chamburr.Glance"},
"storeInfo" : {"deviceIdentifierForVendor":"3779E325-A443-5BC1-9A3A-4E79F4A8EDA9","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.chamburr.Glance",
"crashReporterKey" : "66B93514-FCBF-EC00-D25E-8D7E0F2082A0",
"wakeTime" : 22066,
"bridgeVersion" : {"build":"19P548","train":"6.0"},
"sleepWakeUUID" : "A8819FC8-A4DD-4B5E-BBA0-BC3CC3EEA4E1",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
"termination" : {"namespace":"CODESIGNING","flags":66,"code":1},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":547760,"threadState":{"r13":{"value":0},"rax":{"value":0},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":0},"r8":{"value":0},"cr2":{"value":0},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":0},"r15":{"value":0},"rbx":{"value":0},"trap":{"value":0},"err":{"value":0},"r11":{"value":0},"rip":{"value":4774800064,"matchesCrashFrame":1},"rbp":{"value":0},"rsp":{"value":140701789912064},"r12":{"value":0},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"frames":[{"imageOffset":19136,"symbol":"_dyld_start","symbolLocation":0,"imageIndex":0},{"imageOffset":1,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 4774780928,
"size" : 442368,
"uuid" : "1a6ae033-9438-33c0-8077-988fd885250a",
"name" : ""
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=680K resident=0K(0%) swapped_out_or_unallocated=680K(100%)\nWritable regions: Total=8192K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8192K(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 8K 2 \n__DATA 32K 2 \n__DATA_CONST 64K 2 \n__LINKEDIT 240K 3 \n__TEXT 464K 2 \n=========== ======= ======= \nTOTAL 64.8M 13 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "601d9415f79519000ccd4b69",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "61704e71b6f6b8421579caf8"
},
"deploymentId" : 240000293
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
},
"deploymentId" : 240000064
},
{
"rolloutId" : "602ad4dac86151000cf27e46",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "6169fcad436117010456880e"
},
"deploymentId" : 240000238
},
{
"rolloutId" : "5fc94383418129005b4e9ae0",
"factorPackIds" : {
},
"deploymentId" : 240000145
},
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {
},
"deploymentId" : 240000008
},
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
}
],
"experiments" : [
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}
Model: MacBookPro16,1, BootROM 1715.40.15.0.0 (iBridge: 19.16.10548.0.0,0), 6 processors, 6-Core Intel Core i7, 2,6 GHz, 16 GB, SMC
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online
Graphics: AMD Radeon Pro 5300M, AMD Radeon Pro 5300M, PCIe, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 12 2021 18:02:56 version 9.30.464.0.32.5.76 FWID 01-c081cfed
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
PCI Card: pci1b73,1100, USB eXtensible Host Controller, Thunderbolt@197,0,0
PCI Card: ethernet, Ethernet Controller, Thunderbolt@198,0,0
PCI Card: pci1b21,1242, USB eXtensible Host Controller, Thunderbolt@196,0,0
PCI Card: pci8086,15d4, USB eXtensible Host Controller, Thunderbolt@199,0,0
PCI Card: pci1b21,1242, USB eXtensible Host Controller, Thunderbolt@195,0,0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: P9227 Mobile
USB Device: USB30Bus
USB Device: USB Storage
USB Device: Keyboard Hub
USB Device: Apple Keyboard
USB Device: USB Audio
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: T2Bus
USB Device: composite_device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Device: Thunderbolt 3 Pro Dock, Elgato, 3, 35.1
This makes it easy to copy text
What's the file's extension?
.NFO .nfo
What's the file's Uniform Type Identifier (output of mdls -name kMDItemContentType /path/to/your/file
)?
Now it says this: kMDItemContentType = "org.planbnet.nfo"
What kind of preview do you expect? How can it be generated?
Like this old one: https://github.com/planbnet/QuickNFO
It's not possible to edit a binary plist in a text editor and seems to require a dedicated plist editor. And it would be great to not need Xcode to edit plists, it's a slow and bloated app.
Hi everyone, I've been using Glance for a long time and I'm considering to contribute to this project since it is now open source ! I've tried to design a set of icons for the app to make it better match with the new Big Sur style of macOS. I wanted to try it in the app but I'm having trouble to compile it.
I've read the contribution section in the README, but I still fail to launch the app on my computer. I've installed go and I'm using Xcode 13.4.1. When compiling the Glance target, I'm facing this issue:
fatal error: lipo: can't open input file: htmlconverter-amd64.a (No such file or directory)
cp: htmlconverter-amd64.h: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
This output comes from the QLPlugin script in its build phase:
cd ./HTMLConverter/
GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build --buildmode=c-archive -ldflags "-s -w" -o ./htmlconverter-amd64.a
GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build --buildmode=c-archive -ldflags "-s -w" -o ./htmlconverter-arm64.a
lipo -create -output htmlconverter.a htmlconverter-amd64.a htmlconverter-arm64.a
cp htmlconverter-amd64.h htmlconverter.h
This script fails to run even if go is installed and working on my Mac. Is there any step I've been missing to make it work ?
Hi, macOS doesn’t support handling various file types, one of which is plist.
Originally posted by @chamburr in #43 (comment)
Support for *.tar.gz
files works fine. But most of time (at least in my case), these archives have a *.tgz
extension and are not recognized par Glance.
glance
works really well out of the box!
I'd wonder if it is possible to add support for previewing other file types without having to update the app, e.g., I'd love to be able to just tell quicklook to treat a certain file as "text", in this case .dart
files.
I don't need any code highlighting, however, I'd like to be able to preview .dart
files. Would this be possible with glance
?
Hello, I download the dmg file and install glance. It works on .java, .md, .py files.
However when I tried to quick look a .ipynb file, it displayed some error messages like this:
When I tried to quick look a .cpp file, it displayed as the Mac default style:
I have restarted my Mac but it still cannot work. Do you have any solution?
App version?
1.4.0
macOS version?
12.0.1
What are you trying to do?
Use Glance for what it was written for.
What's the expected behavior?
Glance should show me the preview of the code in QuickLook.
What's the actual behavior?
The previews of each type of file supported by Glance open as per the attached screenshots.
Glance currently does not provide a preview for PUG files (see https://pugjs.org/api/getting-started.html for details). This is the UTI:
kMDItemContentType = "dyn.ah62d4rv4ge81a7ph"
I would gladly provide a pull request, but I have no idea how to setup the build environment to build and test the change. If you could give me some pointers on how to setup the dev environment, I could also write up a DEVELOPMENT.md file for other contributors.
Anyway, thanks for your great work, it is much appreciated!
Best, Ole.
it'd be super nice to have brew cask support for this awesome app
Hello,
I was wondering if it was possible to add a support for MEL, language used in Maya (one of the most used 3D software).
A highlight syntax would be a must but even opening it like a file text would be good.
MEL is syntactically similar to Perl and Tcl (at least that what Wikipedia is saying).
Thank you :)
I see on the Github readme that Quarto markdown files (.qmd
) are supported but they don't seem to be working on my installation. I also noticed that they are not listed in the list of supported files in the app itself.
Are .qmd
files supported and if so, is there something I need to do on my end to get them to work?
For example, the zip format already has other extensions that are more useful. At this point, the support for the zip format can be removed from Glance
If I have quickview open on a document type that doesn't work at all such as .md (markdown) files, then move to another file type using the cursor keys, such as json, the preview for that json will show. If I then move off the file, then back again, the preview failed message appears and glance is now broken for all supported file types.
Re-opening Glance generally fixes it.
monterey 12.6.3 (21G419), m1
glance v1.5.0
Scrolling is not working in code files like .md
, .json
or .php
when Quick Look is opened by pressing Spacebar in Finder, neither using two finger drag on the trackpad or by dragging the scrollbar.
Extensions that are understood by macOS by default like .pdf or .csv work file.
However, when the Quick Look preview is opened via qlmanage -p $file
in the Terminal, the scroll works as expected.
I've already tried restarting QuickLookUIService via Activity Monitor (a common fix for Quick Look problems) and the problem persists.
Hi, is there a way to install the QuickLook plugin without an app wrapper ?
I think this should be the default when using HomeBrew for exemple.
CLI usually install directly and do not require to have a separate app in the Application folder / Launchpad.
This could fix the self-signature problem for people using HomeBrew as I don't think QuickLook plugin require to be signed.
Also, I don't think you need a paid developer account for macOS Notarization, so if you notarize the app, I don't think people that have "Allow app from any developper" checked in Setting would have to do anything.
Thanks for your work on this project. I'm pulling in the most recent versions of goldmark and chroma and building glance from source and would like to experiment with changing the rendered appearance of markdown files and the output of the quicklook previews altogether---e.g., fontsize, font type, coloring, etc. Are there any defaults
settings that handle this from the command line? Or if one wanted to tweak these settings, are these changes that have to be made in the go modules? Thanks!
the preview doesn't work and shows "Extension com.chamburr.Glance.QLPlugin not found" as this post shows.
i'm going to reboot and try again.
update:
it still doesn't work.
but it works after i re-install it after reboot.
Swift sucks and so do you
—tux
Sometimes I need to create a different ext for the files to distinguish them from the others, but the glance cannot be used then.
e.g.: The ext of data files for the OI / algorithm competition would usually be .in
and .out
, or.in1
, .in2
..., but they are in fact .txt
.
I want to register these exts as txt so that I can glance them as txt, it's much easier than to change and build the source files.
I think it will be a useful function, thanks for your help!
1.3.0 (5)
11.4
What are you trying to do?
Use QuickLook to peek at the contents of a zip file.
What's the expected behavior?
Press space
to open QuickLook, and a list of the contents of the zip file is shown.
What's the actual behavior?
When I open QuickLook on a zip file, the only data that is displayed is the compression info, not the contents.
I can't get this to work in Ventura.
When I try to do a QuickLook of a markdown file I get the error message "Extension com.chamburr.Glance.QLPlugin not found".
Is this because glance has not been updated for Ventura yet? Or is there a fix?
Thanks
I have env files like this .env.development.local
, .env.production
in Next.js project and preview not working
Hello. Do you mind if I add support for these files as PR? Everything except .sln files is xml.
The .sln file provides its own format and can be opened as a regular text file. But we can also exclude this, this has the lowest priority.
The next major release of macOS (15.0 Sequoia) removes support for the outdated Quick Look Generator plugins, so (old) extensions will no longer be supported and many file types will no longer be previewable.
Glance using the new method requested by Apple, would it be possible to add support for ePub format files (those without DRM)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.