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

貢獻者指南