Code Monkey home page Code Monkey logo

omniawrite's People

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  avatar

omniawrite's Issues

Enter key has no effect in quote/heading blocks

Describe the bug
Inside a quote or heading block, pressing Enter has no effect. To continue writing text, the user must click the Paragraph button.

Suggestion
In those blocks, make the Enter key behave like the Paragraph button: create a new paragraph below and focus it.

Clean up vscode settings

I request that for example the font family setting and other unnecessary settings in the .vscode folder are removed, since they are unnecessary and make the development process hard since it's very difficult to see the text when those styles kick in.

Support more character formatting

Currently the editor supports bold, italic and underline. But the following are also useful for writing, including literature:

  • Superscript. Useful in math (1 googol = 10100) but also in some languages: in French, honorifics use superscript, e.g Melle Juliette.

  • Subscript. For example in chemistry (H2O).

  • Strikethrough for annotations, e.g: The dog and the cat waswere fighting.

  • Small caps. Good for long acronyms, PA announcements and "writing on the wall". Example from James S.A Corey's Tiamat's Wrath:
    Annotation 2020-08-15 184112

[mobile] Save exported project to storage

I want to have a method that can either:

  • open a file dialog to save to save the export to whatever location
    or
  • save the file in the provided storage for the app in a subdirectory with the project title

Current development branch is 1.1.

It might be helpful to isolate any platform specific methods to a single service file. Right now I have a few of them in here that can be migrated in such service as well. Something like src/interface.js, src/bridge.jsor what ever can be created.

The save file dialog will be called here: https://github.com/TorstenDittmann/OmniaWrite/blob/1.1/src/routes/Export/Cloud.svelte#L124

[editor] placeholder bug

It seems like, that on an empty paragraph, the placeholder interferes with the first focus/mouse click and only works the second time.

[feature] show cards in editor

Is your feature request related to a problem? Please describe.
Before I created my own editor library, I was using EditorJS and have modified the paragraph block to highlight marked cards inside the editor. Since I messed with the DOM and sanitized it afterwards, there was a high chance of leftovers which could've end up in failures.
So for now, I have disabled this functionality.

Describe the solution you'd like
I like to have hints for the cards hovering over the editor, that lets you interact with corresponding cards without modifying the DOM.

I do not think that the previous solution with tooltips was a great idea. Since implementing tooltips always comes with a rat tail and the UX on mobile is very bad.

Additional context
Will add mockups for what I think could be working.

Android Client

Hi, I was looking for a native Android client, but it was unsuccessful, I don't know if it already exists but it's not published on releases and that's why I'm opening this Issue.

I guess i would try to compile it myself, but i honestly don't know how to do it. I think it's a great project, I already installed the Linux Desktop application and it's working perfectly. So thanks in advance 😁

[project] add meta data to projects

As @AntonyBoucher suggested.

Add meta data to projects like:

  • Author
  • Publisher
  • Language
  • Description

into the project itself, so that we don't have to re-type them every time we export.

I don't think saving the cover into the project is a good idea. Since saving it into localStorage will hit the technical limits for us. I was thinking about to have media storage in the cloud and choose files from there. But that will be something for a different update.

Web App displays blank page when local storage is not whitelisted for OmniaWrite

Describe the bug

When navigating to https://app.omniawrite.com/ a blank page is shown

To Reproduce

  1. Do not whitelist cookies for the omniawrite.com domain
  2. Navigate to https://app.omniawrite.com

Expected behavior

  • I would prefer to see content on the page. Whether it is a marketing landing page, or a limited version of the app that does not allow items to be saved locally.
  • Alternatively, a warning message or popup could be displayed informing the user that the app does not work or has limited functionality when cookies have not yet been allowed on the app.omniawrite.com domain.

Screenshots

Screen Shot 2020-10-08 at 1 28 18 PM

Desktop (please complete the following information):

  • OS: macOS Catalina
  • Browser: Firefox 81

[editor] Editing the scene title does not trigger autosave

If you change the scene title in the editor, the change isn't saved unless you also edit the scene contents.

To Reproduce
Steps to reproduce the behavior:

  1. Open a scene.
  2. Edit the title.
  3. Switch to another scene.
  4. Refresh the web page / restart the app.
  5. Notice that the scene title is back to what it was at step 1.
  6. If you repeat the test but with additional step "2b. Edit the text", the title change is saved.

Expected behavior
Changing the title should be saved (immediately or with a delay), just like changing the text.

[important] write tests

This one is scary, since there is zero tests so far in this project 😨

But is essential for the future.

[feature] contributors page

To honor all contributors to OmniaWrite, it would be useful to include a page to list everyone.

This should be automated from the GitHub API.

Scene tab is not updated when scene is renamed

Describe the bug
When I rename a scene, the scene's tab continues to show the old name.

To Reproduce
Steps to reproduce the behavior:

  1. Create a scene, or select an existing scene.
  2. Add it to the tab list.
  3. Rename the scene.
  4. Observe that the tab still shows the original name.

Expected behavior
The tab is updated with the new name.

Screenshots
image

Desktop (please complete the following information):

  • OS: Kubuntu
  • Browser: Chrome 84

[feature] advanced project overview

Describe the solution you'd like
Screenshot_20200804-013716~2.png
Give the user a more advanced overview on his projects. Making these cards clickable and show the user detailed informations or statistics.

For chapters and scenes show a list of the most recent edited ones to navigate quickly between them.

For words show a list of the most used words with the amount of occurrences. Maybe a link to Thesaurus for synonyms could be helpful. Linking to the single occurrences might be tricky, but if they are used very frequent in a scene, linking to the scene is already helpful to the user.

For the characters, an overview of the typing behavior over time could be nice, but that would come with a whole tracking feature and should be optional for now.

Additional context
These features could lack visibility without any context, so a workaround for that might be needed. I hesitate right now to add another route to the navigation for statistics/analytics.

[export] add "Normseiten" export

The "Normseite" is an auxiliary variable with which the size of a manuscript can be estimated. In literature, journalism and advertising, it serves as a possible basis for calculating the fees of authors, journalists, copywriters, translators or editors.

It was originally laid down in the standard contract of 1 July 1992 between the German book trade and the Association of German Writers: 30 lines of maximum 60 characters per page (1500 characters per page).

German Wikipedia

This can be especially useful to share your work with contractors or third parties.

[tests] compare languages

I would really like to have a test job, that compares the language files and displays the coverage of them compared to the English one.

This should probably be added as an npm script.

Inserting a block above the first one

We have buttons to insert new blocks below existing blocks. But none to insert a block above the first block.

Suggestion: Show buttons below the scene title when the mouse hovers over the space.

image

PDF Export

Is your feature request related to a problem? Please describe.
Nope, it would just be a really nice thing to have

Describe the solution you'd like
Being able to export to PDF

Describe alternatives you've considered
Being able to export to HTML would be nice, and that would make PDF export incredibly relatively simple to add with all of the HTML -> PDF exporters out there

Tab key in modals tabs through elements outside the modal

Describe the bug
Inside a modal dialog, pressing the Tab key repeatedly moves focus to the next items inside the modal, then also to items outside it.

To Reproduce

  1. Open a modal dialog, e.g Create Card.
  2. Press Tab key a dozen times.
  3. Observe that the focus eventually goes to menu items, chapters, scenes, etc.

Expected behavior
When the last element in the modal has focus, pressing Tab again should focus the modal's first element.

Screenshots
In the image below, after opening the modal I was able to focus the "New Scene" button. Pressing Enter key at that point opens the New Scene dialog (the two modals are open at the same time).
image

Wrong datetime display

Describe the bug
Is a minor issue. With i18n, the displayed datetime is wrong localized. It shows MMMM Do YYYY, h:mm a. in Spanish it produces Septiembre 28° 2020 9:20 am.

To Reproduce
Steps to reproduce the behavior:

  1. Change the language to Spanish
  2. Login with any account
  3. See the activity log

Expected behavior
See a localized datetime: in Spanish should be "28 de septiembre de 2020 09:20 am" (maybe LLL in Moment js)

Screenshots
Captura de pantalla de 2020-09-28 21-34-44

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chrome
  • Version: 85

Some strings are not displayed in Spanish

Describe the bug
After create a new Scene, the string Let's write an awesome story! and the dialog to confirm delete a paragraph are displayed in English.

To Reproduce
Steps to reproduce the behavior:

  1. Change the language to Spanish
  2. Click on New Scene (when is available)
  3. See the string in new page

Expected behavior
Show the string "¡Vamos a escribir una historia asombrosa!" and "¿Estás seguro?"

Screenshots
Captura de pantalla de 2020-09-24 22-32-40
Captura de pantalla de 2020-09-24 22-32-25

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chrome
  • Version: 85

Additional context
I think the problem is in omnia-editor maybe here, I'm unsure about that, and I can read TypeScript but I can't write code fluently.

Support more paragraph styles

OW currently supports ordinary paragraphs (<p>), quotes (<q>) and code blocks (<code>). Some other styles may also be useful in practice:

  • Bullet list (<ul>)

  • Ordered list (<ol>)

  • Left/centered/right justified paragraph

  • Indented paragraph: a paragraph with extra margin, for example a letter or note being transcribed within a novel. From Lovecraft's The Whisperer in Darkness:

    image

[editor] Deleting a paragraph cannot be undone

Describe the bug
Undo button cannot undo the removal of a block of text.

To Reproduce
Steps to reproduce the behavior:

  1. Create a scene with 2 non-empty paragraphs.
  2. Delete the first paragraph.
  3. Press Undo button or ctrl+Z.
  4. Observe that step 3 has no visible effect: paragraph is not restored.

Redo button has some surprising effect though:

  1. Create a scene with 2 non-empty paragraphs.
  2. Delete the first paragraph.
  3. Press Undo twice then Redo once.
  4. Observe that the deleted block's text is appended twice to the last paragraph.

Expected behavior
Ctrl+Z or Undo button restore the deleted block. Ctrl+Y or Redo button delete it again.

[sidebar] move scene/chapter quirks

Describe the bug
Moving a scene or chapter right now for re-arranging is currently not possible on touch devices and seems to be very inconsistent between browsers.

For touch devices it's clear, the eventhandlers are missing for drag & co.

Since doing drag & drop in browsers with HTML elements from scratch is a pain in general, implementing a matured library like SortableJS might be the smartest approach.

Buttons clutter the editor on narrow displays

Describe the bug
When the screen is < 960px wide, buttons are visible below every block.

Expected behavior
Button appear under the active paragraph only. Or they appear once, at the bottom of the screen, and apply to the active block (or last block, if none is active).

Screenshots
image

[modal] unsupported browser warning

When the user opens the WebApp, we should check if the used browser is none of:

  • Any chromium based browser
  • Firefox
  • Safari/WebKit

The user should be able to dismiss this warning for the session or X days. Using cookies for this might be the smartest approach.
Content of the modal, should be suggesting to use Brave Browser or the desktop apps.

We also need to check if the user is on Electron or Capacitor to not show this message at all. I am not quite sure about their user agents right now.

Text pasted from other apps is not sanitized

Describe the bug
When text or "content" is pasted into the editor from another app (browser, Word, VS Code, etc) its formatting is imported along with it, even if the editor does not support it.

To Reproduce

  1. Select some content from a website, and paste it into a paragraph.
  2. Observe that the text keeps its original formatting, and elements like links, images and videos are displayed inside OmniaWrite.
  3. Switch scenes back and forth; the content is eventually sanitized.

Expected behavior
Pasted text should be scrubbed of all unsupported formatting, i.e all tags except <b>, <i>, <u>. Line breaks should also be handled somehow, as they are (currently) not allowed inside paragraphs.

Screenshots
image

Help Translate OmniaWrite

Currently we only offer OmniaWrite in en and de.

To target a more broad audience, I would like to have additional languages added:

suggest a language by commenting on this issue

Guide

Clone a translation in /src/lang/ and rename it to your desired 2-letter language code following ISO-639-1 guidelines.

Translate every value in the JSON object and add the language to this part: https://github.com/TorstenDittmann/OmniaWrite/blob/master/src/main.js#L10

Let's say we want to add Russian, our line of code would look like this:

register("ru", () => import(/* webpackChunkName: "ru" */ "./lang/ru.json"));

Once you are done, you can create a Pull Request to the dev branch 🥳

Undo/Redo buttons do not update word count

Describe the bug
The word count is not updated after using the Undo and Redo buttons.

To Reproduce
Steps to reproduce the behavior:

  1. Open or create a scene with some text in it.
  2. Select and delete a few words. The word count decreases.
  3. Press Undo button.
  4. Observe that the word count does not go back.
  5. Start typing again: the word count gets updated and is accurate.

Expected behavior
The word count should be updated (immediately or with a delay) after pressing Undo or Redo buttons.

Multi-block selection / copy / cut / paste

To delete several blocks, one has to click the Delete button then OK button for each block, one by one. It can be tedious. It would be nice to be able to select a span of text across multiple paragraphs, with the mouse or keyboard, then press Del key. But text selection is presently limited to a single block:

image

It gets worse when you want to move text to a different scene: you need to select a block's content, copy, delete it, switch scene, create a block, paste, switch back and repeat for each block of text.

Editor i18n

Describe the bug
Editor UI is in English no matter what language is selected in Settings:

  • "Let's write an awesome story!" placeholders
  • "Paragraph", "Quote", "Heading", "Delete" button tooltips
  • "Are you sure? OK Cancel" block delete dialog

Expected
The whole UI is in the language selected in Settings.

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.