nextcloud / nextcloud/text

Calculations, unit conversions and more inline in Text

Open
#7,028 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Is your feature request related to a problem? Please describe.
When you create documents including units or financial data, you often immediately need to go for a spreadsheet. Spreadsheets are very hefty and seem very rigid and difficult to approach for people not working day to day with them.

For small calculations or unit conversions, a simple way to embed them in Text via writing them or even using natural language would be helpful.

Describe the solution you'd like
There is a popular MacOS app called Soulver which does this very well: https://soulver.app/
We don’t necessarily have to have a vertical split line, results could also be shown using a bubble next to the calculation in question.

Two further apps which do it similarly are https://www.figr.app/ and https://notepadcalculator.com/

There are also some JS libraries of differing quality:

Describe alternatives you've considered

  • Not doing it cause it’s quite complicated to get right.
  • Using AI to do the same?

@juliusknorr curious about your take and if you thought about it before.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Text editor and the referenced JavaScript libraries, including notecalc3 and soulver-web, to understand possible approaches to inline calculations and unit conversions. The issue does not identify files, tests, syntax, or a defined completion scope; done would require an agreed design and implementation for the supported calculations and their presentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.