contradb/contra

cut/copy/paste for search expressions

Opened this issue · 1 comments

As a user, when I click on the button of a search expression, I can select Cut, Copy, or Paste, so that I can quickly craft a query.

  • Copy - copies a text representation of the search expression to the users clipboard. E.g. ["figure", "swing"].
  • Cut - as above, but also deletes the search ex it was clicked on. This menu item does not appear in the same cases Delete does not appear - i.e. when deleting a node would make invalid syntax
  • Paste - replaces the selected node with the parsed text representation in the user's clipboard. There will need to be some error handling, and additional stories around the cases when:
    • the user pastes gibberish
    • the user pastes a numeric expression to a non-numeric search-ex
    • the user pastes a non-numeric expression to a numeric search-ex

Did not use system clipboard.

The reason is because firefox won't let you paste.