Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit() function to support builtin editor bypass, notes too #2672

Closed
elig0n opened this issue Apr 12, 2024 · 2 comments · Fixed by #2673
Closed

edit() function to support builtin editor bypass, notes too #2672

elig0n opened this issue Apr 12, 2024 · 2 comments · Fixed by #2673
Labels
feature New feature request

Comments

@elig0n
Copy link

elig0n commented Apr 12, 2024

it would be useful to be able to force using the non-external editor with edit()
for example with an argument.

Also please consider implementing edit_note() to open an editor with the item note

@elig0n elig0n added the feature New feature request label Apr 12, 2024
hluk added a commit that referenced this issue Apr 13, 2024
hluk added a commit that referenced this issue Apr 13, 2024
@hluk
Copy link
Owner

hluk commented Apr 13, 2024

Good idea. Draft for the new API:

editItem(row[, mimeType[, data]])

    Edits specific format for the item.

    Opens external editor if set, otherwise opens internal editor.

    If row is -1 (or other negative number) edits clipboard instead and creates new item.

For example to edit 3rd item's notes: editItem(2, mimeItemNotes)

I'm also changing the current behavior so that the external editor (if set) opens for edit notes instead of the internal one.

@hluk
Copy link
Owner

hluk commented Apr 13, 2024

I'm also changing the current behavior so that the external editor (if set) opens for edit notes instead of the internal one.

Actually, disregard this. It would be inconsistent with the default edit shortcut (F2).

But it would be possible to assign custom command to edit notes in the external editor.

hluk added a commit that referenced this issue Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants