Git Product home page Git Product logo

fleeting-notes-editor's People

Contributors

martinemmert avatar

Stargazers

 avatar

Watchers

 avatar  avatar

fleeting-notes-editor's Issues

I want to tag my notes with hashtags

  • The hashtags should tag the note so I can categorize them.
  • A note can have many hashtags
  • The hashtags should be added as attributes to the note
  • The hashtags should be stored inside a map that links the tag with the note id
  • A hashtag cannot contain any spaces

Implement command splitHashtag and assign it to Enter

Scenario

- <hashtag>#foo|bar</hashtag>

If enter is pressed within a hashtag, the content after the cursor should be split from the hashtag and put on a new line.

It should be possible to leverage already existing split commands.

Implement outliner commands and keymap

sinkNote - when I press Tab at any position in a note_text, the editor:

  • cancels the command if no sibling note before the current note is available
  • appends the current note to the children of the sibling note before the current note

liftNote - when I press Shift + Tab at any position in a note_text, the editor:

  • cancels the command if the current note's parent is the doc
  • appends the current note to the children of the current note's parent note

splitNote - when I press Enter at any position in a note_text, the editor:

  • inserts a new sibling note before the current note if the cursor is at the start of the current note
  • creates a new sibling note after the current note
  • transfers any content after my cursor, including note_children, to the new note
  • moves the cursor at the beginning of the new note

joinNoteBackward - when I press Backspace at the beginning of a note_text, the editor:

  • cancels the command if no sibling note before the current note is available
  • moves the cursor at the end of the sibling note before the current note
  • transfers any content after my cursor, including note_children, to the sibling before the current note
  • removes the current note from the document

joinNoteForward - when I press Del at the end of a note_text, the editor:

  • cancels the command if no sibling note after the current note is available
  • transfers any content of the sibling note after the cursor, including note_children, to the current note
  • removes the sibling note after the current note from the document

moveNoteUp - when I press Shift+(CMD|CTRL)+UP at any position in a note_text, the editor:

  • cancels the command if the current note is the first child
  • swaps the current note with the previous sibling note

moveNoteDown - when I press Shift+(CMD|CTRL)+UP at any position in a note_text, the editor:

  • cancels the command if the current note is the last child
  • swaps the current note with the next sibling note

splitNote throws error

How to reproduce:

  • cursor is in the note_text note of a note
  • cursor is at the and of the note_text's text
  • the inserted text has a length of > 1
  • try to split the note
  • error NodeType.create can't construct text nodes is thrown

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.