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

Add a custom editor for notes preview #25

Closed
viddo opened this issue Oct 5, 2016 · 0 comments
Closed

Add a custom editor for notes preview #25

viddo opened this issue Oct 5, 2016 · 0 comments

Comments

@viddo
Copy link
Owner

viddo commented Oct 5, 2016

The current problem is that opening a text-editor (even in pending state) is quite costly, this is an already known issue, atom/fuzzy-finder#5

Considering the preview should focus on text notes, and the goal of the preview is to give a quick glance of the content + matched strings the best solution is probably to implement a minimalistic editor that fulfills the following requirements:

  • Preview editor should show content of note
  • Highlight matched strings; scroll to first match if outside the visible viewport.
  • Upon hitting Enter or focusing on the preview window (e.g. by clicking pane), the editor should be replaced by the default text editor.
  • When a note is unselected (e.g. hitting Esc) the preview should be closed.
  • Visually it can look similar to the default text editor, but doesn't need all the advanced features (grammar, word wrap etc.), so should be sufficient of rendering a simple HTML element with a note's content.
  • Reuse preview when changing selected note.
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