Skip to content
/ ql Public

Quick Look from the command-line ๐Ÿ‘€

License

Notifications You must be signed in to change notification settings

pmeinhardt/ql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ql

checks

Allows you to preview files from the command-line Integrates with Vim/Neovim

Preview files from the command-line using macOS Quick Look.

Open a file in Quick Look from the command-line:

ql <path/to/file>

Yes, there is qlmanage. But youโ€™d always have [DEBUG] staring at you.

Building ๐Ÿช›

In order to build the ql command, run:

make

This requires macOS 12.0+ with swiftc installed.

You can copy the resulting binary anywhere you like or add the bin/ directory to your PATH.

Vim plugin ๐Ÿ”ฉ

There is a Vim plugin for ql. If you use vim-plug, add this line to your Vim configuration file:

Plug 'pmeinhardt/ql', {'do': ':QuickLookCompile'}

The plugin provides a :QuickLook [path] command and <Plug> mappings. If you invoke it without a [path], it will show a preview of the current buffer contents. See .vimrc.develop for usage examples.

You can use the plugin, even if you cannot build ql itself. If the ql binary is not found, the plugin will fall back to using qlmanage if available or open. In this case, leave out the {'do': ':QuickLookCompile'} part of the plugin integration above to avoid build errors when upgrading your Vim plugins.

It is probably possible to integrate other file previewers like GNOME sushi. If you are up for it, I am happy about pull-requests.

Markdown ๐Ÿšฒ

If you want to preview Markdown files without additional Quick Look plugins, take a look at Maxdown: https://github.com/pmeinhardt/maxdown

References

About

Quick Look from the command-line ๐Ÿ‘€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published