Code Monkey home page Code Monkey logo

stroke's People

Contributors

davidmerfield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

stroke's Issues

Possible to make delete act properly?

So, I've been trying to code this up myself and have hit a series of walls.

Essentially, pressing delete should start striking out characters previously written.

Problems I faced -

  1. Lack of knowledge of what the heck are dom nodes.
  2. If no text is selected, window.getSelection() returns a non-Range object. This is what I considered my starting point. If I could return a range object by creating it to include a node that represents the last unstriken character, the rest of the code would work as is.
  3. Couldn't find a way to create text nodes instead of extracting them from the selection.
  4. Couldn't find a way to programmatically select text on a page. There are solutions on StackOverflow and elsewhere to override either the selected text or copied text but not to programmatically select text in a contenteditable section node.
  5. I found this amazing thing but it works only with input tags.
  6. I found this but it only works with div.

I have been hacking away at this script for a while now and have nothing to show for it. I would really, really like if you could please try to implement this because it's a really neat feature to have, instead of having to select text and then strike it through.

But other than that, thank you so much for this awesome and amazingly smart tool... πŸ‘ πŸ˜ƒ

Strikeout sometimes misaligned

Sometimes, if I'm far enough down the page to create a scrollbar, and ⌘-A then backspace to strike out all text, the alignment of the strike for lines out of the current visible area doesn't quite work as expected.

screen shot 2014-06-11 at 9 40 46 am

64-bit support

Stroke doesn't work on macOS Catalina because it is a 32-bit app and needs to be updated to 64-bit. Thanks!

No support for accents

It's impossible to write a word with an accent.

For example, the word "nΓ£o" turns in to "n~ao"

Pinyin entry support for Mandarin Chinese

On Mac OS X, the built-in Mandarin pinyin system fails to work properly. Each phonetic character is immediately rendered on screen but the cursor does not advance; the space directly under the cursor is continuously replaced by whatever character was typed last. The pinyin system has no memory of previously typed phonetic characters so the user cannot indicate sounds longer than a single character (most sounds). The dialog box displaying potential Han characters corresponding to typed phonetic characters flashes on screen for only a moment giving the user no chance to select the desired Han character.

ζˆ‘δ»¬ζ€ŽδΉˆεŠžε‘’οΌŸ

This issue might be related to #18.

file overwrites

right now you can open a file in two windows by overwriting

Remove extra newlines

for example is there is:

VALID TEXT
NEW LINE
STRUCK OUT TEXT
NEW LINE
STRUCK OUT TEXT
NEW LINE
VALID TEXT

should be parsed to
VALID TEXT
NEW LINE
VALID TEXT

and not, as is currently the case
VALID TEXT
NEW LINE
NEW LINE
NEW LINE
VALID TEXT

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.