fregante/GhostText

GhostText editor capabilities document

开放

#256 创建于 2023年3月13日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (133 个派生)github user discovery
discussiondocumentationhelp wanted

仓库指标

星标
 (3,611 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Not all editors behave the same. There should be a way to write how GhostText-compatible targets should behave. A partial list

Server

  • The editor should start listening to connections as soon as it's opened
  • The editor should allow the configuration of the port
  • The editor should automatically restart the server when the port is changed
  • The editor should throw an error/notification if it can't open the port

On connection

  • Create a new transient/temporary document so that when closing it the user isn't prompted to save it
  • If there's a disconnected GhostText tab open, reuse it
  • If there's a connected GhostText tab, create a new tab next to it
  • If there aren't any other GhostText tab, create a new a new transient workspace
  • The document should gain focus and be brought to the top so that the user can immediately start writing

Document

  • It should indicate that GhostText is active (via filename, status bar, etc) perhaps using 👻🌕 and 👻🌘 as indicators.
  • It should start as Markdown, but probably just let the editor automatically figure it out if it can

Updates

  • The updates should be throttled depending on the text length (between 50ms and 1s)

Options

  • Server port
  • Gain focus on connection

贡献者指南