borablanca / orgmodeweb

Web app to view, edit and search org files.
MIT License
102 stars 10 forks source link

Features and enhancement request. #1

Open llcc opened 5 years ago

llcc commented 5 years ago

The awesome tool saved my life. I have started to use it everyday. After some trying, I would like to request some new features, and please decide whether it is worth to implement or not.

  1. Theme color: I think white background with black fonts can offer good reading experience. The current color settings cause tiresome after long reading. I synced org books with Dropbox and read it a lot.

  2. Paragraph alignment . The both-end alignment of paragraph will make reading more comfortable. Or if you can offer an option for setting to let users decide.

  3. Block codes fontification. It will make reading codes more comfortably.

  4. More org syntax supports, like =quote=, *bold*, /italic/, _underline__, -delete-.

  5. Adjustable font size and sreen adaptivity like on iPhone etc.

  6. Link support. Currently, the links cannot be clicked.

Please take your time and will feel pleased if you can take some considerations.

borablanca commented 5 years ago

Thank you for the suggestions.

  1. I was also thinking about a light theme (maybe several themes). For that reason I was planning to create separate css (sass) file for a theme and load the theme file on demand. So yes there will be a light theme. BTW I don't know about org books. Can you give an example link to an org book for trying?

  2. Adding an option to set paragraph's alignment (left or justified) shouldn't pose a problem. I can add it for upcoming deployments.

  3. Block code detection is not supported in the parser now. And because the parser works on-the-fly I want it as fast as possible by making it providing minimum requirements. Adding block code detection may slow it a little. I will think a way for block code fontification. Maybe detecting block codes during the change of cycle visibility of the heading can be an option. That way user drawer's may also be supported.

  4. Now *bold*, /italic/ and _underline_ are supported. After your comment, I saw on org-manual that there are also =verbatim=, \~code~ +strike-through+. I will plan to add them too.

  5. I have plans for setting different kind of faces (such as todo-faces now in the settings menu) You can change TODO keyword's styles by changing the todo-faces setting using css variable names such as TODO --color white --font-size 20px --text-decoration underline etc. Adding different faces will provide adjustable font-sizes. For example I will add level-faces to change styles of headings in different levels.

  6. Normally links are working. On desktop the keyboard shortcut "o" opens the link in the heading if there exist a link (if there are multiple links, it will ask which one to open). On mobile taphold opens the link. However as someone mentioned the same problem on reddit, I searched and found that Safari browser has some issues detecting jquery contextmenu event for taphold. I will look into it but I have no Apple product to test on. I will see what I can do.

llcc commented 5 years ago

Thanks for your reply.

1, 2. Thanks if you can offer an option for this.

  1. Its kind of difficulty to detect the block if the parse not got supported. But an alternate way can help a little. Currently, the theme of header and text in the block are exactly same. If you can add a face for the header, which should not be hard, since it starts with #+ like a comment.

  2. I checked the org syntax on both windows and iPhone, it seems neither of them shows the syntax rightly, including bold, /italic/ and underline .

  3. The font of heading is good for now. The paragraph's font size is too small to read.

  4. On iPhone, the link functions are not working properly. Taphold seems do nothing.

I found a another bug on iPhone: The editing can not work properly, I double click the paragraph, nothing happens. If you need any help, i can do debug and test on my iPhone. Just don't hesitate to contact me. Thanks again.