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

Exporter: add memos export #10411

Merged
merged 6 commits into from
May 18, 2023
Merged

Exporter: add memos export #10411

merged 6 commits into from
May 18, 2023

Conversation

fierceX
Copy link
Contributor

@fierceX fierceX commented May 10, 2023

Add an export method for memos, which originates from flomo and now has an open-source self-deployment solution:memos


This change is Reviewable

buttons = {
{
{
text = _("Cancel"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add id = "close" to enable exiting the dialog on non-touch devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not familiar with lua and koreader, this is what I changed according to the code of other export plugins, now please see if there is any problem with my modification, thank you.

@@ -38,7 +38,7 @@ local _ = require("gettext")

-- migrate settings from old "evernote.koplugin" or from previous (monolithic) "exporter.koplugin"
local function migrateSettings()
local formats = { "html", "joplin", "json", "readwise", "text", "my_clippings" }
local formats = { "html", "joplin", "json", "readwise", "text", "my_clippings", "memos" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It used to be sorted.

Could you please sort it again (both memos and my_clippings). Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that the correct ordering: 'html', 'joplin', 'json', 'memos', 'my_clippings', 'readwise', 'text' ?

@hius07 hius07 changed the title [plugin] Exporter: add memos export Exporter: add memos export May 17, 2023
@hius07 hius07 added the Plugin label May 17, 2023
@fierceX
Copy link
Contributor Author

fierceX commented May 18, 2023

@hius07 @pazos Hi, what other changes do I need to make?

@hius07
Copy link
Member

hius07 commented May 18, 2023

Looks good (didn't tested the memos service).

@fierceX
Copy link
Contributor Author

fierceX commented May 18, 2023

@hius07 Do I need to add tests to the code. I tested it myself and it works. Do I need to provide screenshots or something like that?

@hius07
Copy link
Member

hius07 commented May 18, 2023

I tested it myself and it works.

Good, it's enough I think.

@Frenzie Frenzie added this to the 2023.05 milestone May 18, 2023
@Frenzie Frenzie merged commit 4c9231a into koreader:master May 18, 2023
@cpuks
Copy link

cpuks commented Mar 5, 2024

Anyone got this working? As I've tried 2024.3.1/.3/.1 and 2023.10 - no luck although API works with curl and android memos app locally and via FQDN, flomo has same issue too - exporter says successful but no data retrieved in apps. Also once I manually specify memos via share option I got crash every time no matter what.

--------- beginning of system 03-05 23:05:22.617 I/ForceDarkHelperStubImpl(32612): setViewRootImplForceDark: false for org.koreader.launcher.CrashReportActivity@f0c12a4, reason: AppDarkModeEnable 03-05 23:23:56.433 W/Looper (32612): PerfMonitor doFrame : time=769ms vsyncFrame=0 latency=0ms procState=-1

@fierceX
Copy link
Contributor Author

fierceX commented Mar 21, 2024

@cpuks sorry it's been a busy time, can you tell me the version of memos you are currently using, I'll test it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants