fregante/GhostText

Pass full URL to editor for major mode detection

オープン

#212 opened on 2021/07/29

 (3 件のコメント) (2 件のリアクション) (0 人の担当者)JavaScript (133 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (3,611 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド