acg / shellac

Extend Chrome with unix shell commands
99 stars 25 forks source link

doesnt add commands #9

Open gregpalaci opened 2 years ago

gregpalaci commented 2 years ago

I have my shellac.json { "actions": [ { "name": "edit_page", "title": "Edit the Source to this Page", "command": "scripts/edit \"$SHELLAC_TAB_URL\"", "contexts": ["page"] }, { "name": "terminal_selection", "title": "Terminal the Source to this Page", "command": "scripts/terminal \"$SHELLAC_TAB_URL\" \"$SHELLAC_INFO_SELECTIONTEXT\"", "contexts": ["all"] }, { "name": "copy_link_and_selection", "title": "Copy URL + Selection to Clipboard", "command": "scripts/copy_link_and_selection \"$SHELLAC_TAB_URL\" \"$SHELLAC_INFO_SELECTIONTEXT\"", "contexts": ["selection"] }, { "name": "mail_page_gnome", "title": "Mail this Page with Gnome Email App", "command": "scripts/mail_gnome \"$SHELLAC_TAB_URL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["page"] }, { "name": "mail_page_thunderbird", "title": "Mail this Page with Thunderbird", "command": "scripts/mail_thunderbird \"$SHELLAC_TAB_URL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["page"] }, { "name": "mail_page_tmux_mutt", "title": "Mail this Page with tmux + mutt", "command": "scripts/mail_tmux_mutt \"$SHELLAC_TAB_URL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["page"] }, { "name": "mail_link_gnome", "title": "Mail this Link with Gnome Email App", "command": "scripts/mail_gnome \"$SHELLAC_INFO_URL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["link"] }, { "name": "mail_link_thunderbird", "title": "Mail this Link with thunderbird", "command": "scripts/mail_thunderbird \"$SHELLAC_INFO_LINKURL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["link"] }, { "name": "mail_link_tmux_mutt", "title": "Mail this Link with tmux + mutt", "command": "scripts/mail_tmux_mutt \"$SHELLAC_INFO_LINKURL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["link"] }, { "name": "mail_image_thunderbird", "title": "Mail this Image with thunderbird", "command": "scripts/mail_image_thunderbird \"$SHELLAC_INFO_SRCURL\" \"$SHELLAC_TAB_TITLE\"", "contexts": ["image"] }, { "name": "env", "title": "Debugging: dump environment", "command": "scripts/dump_env", "contexts": ["all"] } ] }

and the terminal executable tested and working in the right directory, it doesnt show up tho?

gregpalaci commented 2 years ago

for brevity { "name": "terminal_selection", "title": "Terminal the Source to this Page", "command": "scripts/terminal \"$SHELLAC_TAB_URL\" \"$SHELLAC_INFO_SELECTIONTEXT\"", "contexts": ["all"] },

gregpalaci commented 2 years ago
Screen Shot 2022-05-07 at 8 29 56 PM

not sure if this matters

maybe its related to this https://www.sitepoint.com/community/t/certain-js-code-not-working-in-chrome-extension/291240/6