Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GhostText editor capabilities document #256

Open
5 of 14 tasks
fregante opened this issue Mar 13, 2023 · 0 comments
Open
5 of 14 tasks

GhostText editor capabilities document #256

fregante opened this issue Mar 13, 2023 · 0 comments

Comments

@fregante
Copy link
Owner

fregante commented Mar 13, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant