Last active
April 13, 2020 11:36
-
-
Save pauricthelodger/4699696303cec7d31ebc to your computer and use it in GitHub Desktop.
This might be useful if you are using Midnight Commander (mc) (http://www.midnight-commander.org) and Insync (http://insynchq.com) or possible some other Google Drive syncthing. Will open at least some Google file types in your default browser after parsing the url from the json in the placeholder file.
This file contains 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
# ~/.config/mc/mc.ext | |
# This might be useful if you are using Midnight Commander (mc) (http://www.midnight-commander.org) | |
# and Insync (http://insynchq.com) or possible some other Google Drive syncthing. | |
# Will open at least some Google file types in your default browser after parsing the url | |
# from the json in the placeholder file. The mc extension file can usually be found | |
# at ~/.config/mc/mc.ext or edited via mc itself (F9 » Command » Edit extension file). | |
# I add the below to the Document section (### Documents ###). | |
# Google Online File Formats | |
# This version requires jq to be installed | |
# Available via apt/yum/brew/etc | |
# http://stedolan.github.io/jq/download/ | |
shell/i/.gddoc | |
Include=google_opener | |
shell/i/.gdsheet | |
Include=google_opener | |
include/google_opener | |
Open=(jq '.url' %f | xargs x-www-browser) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment