Is there a shortcut for open a URL in the current cell? #1543
-
Is there a shortcut for open a URL in the current cell? (Wish there was a command palette!) |
Beta Was this translation helpful? Give feedback.
Answered by
geekscrapy
Sep 28, 2022
Replies: 1 comment 3 replies
-
For the command palette, try z ctrl+H For opening a URL, you might want @VisiData.global_api
def sys_open_resource(vd, resource):
import subprocess, os, platform
if platform.system() == 'Darwin': # macOS
subprocess.call(('open', resource))
elif platform.system() == 'Windows': # Windows
os.startfile(resource)
else: # linux variants
subprocess.call(('xdg-open', resource))
# Generic OS open
Sheet.addCommand(None, 'sysopen-cell', 'sys_open_resource(cursorValue)', 'Open cell with OS') Hope that helps! |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
reagle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the command palette, try z ctrl+H
For opening a URL, you might want
zo
to open the URL with vd, or if you want to open with the OS command try the below in your.visidatarc
Hope that helps!