nextcloud / nextcloud/deck

Insert attachment at cursor position

Open
#2,139 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: attachments good first issue
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

Deck 1.0.5

Attachments are always inserted at the end of the text field.
However, at least for me, it would make sense to insert the attachment at the current cursor position.
For example, if you already have written a lot of text and now want to add an image at the current position, it is natural to go to that position in the text and click on the insert attachment button.

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

No file or test is named. Start by locating the text-field editor and the attachment insertion entry point, then trace how the current cursor position is exposed when the button is clicked. Done means an attachment is inserted at the cursor, including between existing text, rather than always at the end.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.