GhostText icon indicating copy to clipboard operation
GhostText copied to clipboard

Pass full URL to editor for major mode detection

Open mbunkus opened this issue 3 years ago • 1 comments

Setup

Browser: Chrome, Vivaldi Editor: Emacs

Description

I'm trying out GT with atomic-chrome in Emacs. Unfortunately matching the major mode against host names isn't enough for me. Emacs is my primary tool at work, and we run all of our web services through a single reverse proxy, meaning all of them share the same host name. A lot of those require different major modes: a ticketing system (text-mode), a wiki (dokuwiki-mode), a local Gitlab instance (markdown-mode), our ERP system (a custom-made, ERP-specific major mode) etc.

Coming from the "Edit with Emacs" extension I could handle all of them just fine as Emacs had access to the full URL. With GT this is impossible and highly annoying. Detecting the major mode from the contents doesn't work either as a lot of the time there is no initial content.

So please consider a way to provide the full URL or at least the path, too (meaning up to ?; that would definitely suffice for me). Thanks.

mbunkus avatar Jul 29 '21 17:07 mbunkus

I noticed this too while implementing a server according to the protocol which says url is a URL. Currently the extension only sends the host (e.g. gitlab.com).

I have only tested Chrome with GhostText 21.4.8.

jamesramsay avatar Nov 12 '21 22:11 jamesramsay