GithubHelp home page GithubHelp logo

edit's People

Contributors

cdent avatar fnd avatar pads avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

edit's Issues

extraclusion is tiddlywiki text only

Now that the markdown support on tiddlyspace supports transclusion it makes sense that @edit should notice which markup the container has when extracluding and:

  • create the new tiddler with that markup
  • write the transclusion with the proper syntax

left-over backups

Somehow I got myself into a situation where every time I open $tiddler for editing, I'm being asked whether I want to restore the existing backup. AFAICT there's no way to fix that (other than hrx0rizing).

non-recoverable edit conflicts

If an edit conflict occurs, all input fields are disabled - which means that there's no (simple) way to recover those inputs.

missing character encoding

Firefox complains:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol.

So we probably wanna add <meta charset="utf-8"> to the HEAD.

Clone button feature

Adding an extra button that can clone the tiddler you want to edit would be useful.

An example use case is loading a tiddler included from another space. The editing pane will be disabled but clicking on the clone button should silently clone the tiddler and enable the editing pane.

do a localStorage backup thing

cuz why not?

on a timeout, drop the text to a key

on successful save, delete the key

on load, if the key is there ask if we want to use it

presumably a timestamp ought to be saved too

(yes, I just lost a lot of content because this wasn't there)

HTTP 409 not handled on PUT

The server will respond with a 409 when the resource itself is in conflict, for example when the title is too long. This is not handled in the edit.js code. It does, however, handle 412 (which is a conflict in the headers of the resource).

409 will happen on a tiddler PUT when:

  • the target bag does not exist
  • the tiddler is "badly formed"
  • the tiddler does not pass a validator

The place to fix this is in _saveEdit.

buttons which cause network calls need handling

A click should be:

  • acknowledge with a change in display
  • disabled while the request is pending

The main offender is not being sure if "save" or "save & return" has been clicked, because it can take a while to process.

check SystemSettings for chkPrivateMode to determine default privacy

The SystemSettings tiddler is used by TiddlyWiki to figure out various settings. One of those settings is chkPrivateMode which determines the default public or private state of new tiddlers. We could use this in edit too (and ignore anything else, for now).

However, it might be a bit odd to use a TiddlyWiki thing for a general setting. Perhaps the setting should be somewhere else?

need a way to create a tiddler from scratch from within edit

Consider the following scenario: It becomes possible in tiddlyspace to control what is dispalyed at the "write" menu entry in the backstage or /_apps. If that can be edit, edit will get loaded up but without any "new tiddler" button and one will wonder, WTF?

Simplest thing is probably a button that makes the headline editable.

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.