Skip to content

Exporter: selected files #10453

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

Merged
merged 4 commits into from
May 19, 2023
Merged

Conversation

hius07
Copy link
Member

@hius07 hius07 commented May 18, 2023

Export highlights for selected files.
Having a button "Select all files in folder", it is easy to export the whole folder.
So, closes #10402.

To keep even number of buttons, added a feature "Show selected files list". May be useful to check selections before an operation. Just a sorted list, no titlebar or popup menu, tapping a file jumps to its folder.

01

02


This change is Reviewable

@Frenzie Frenzie added this to the 2023.06 milestone May 18, 2023
@@ -171,6 +171,18 @@ function Exporter:exportAllNotes()
self:exportClippings(clippings)
end

function Exporter:exportFilesNotes(files)
-- @table files {[file_path] = true}
Copy link
Member

Choose a reason for hiding this comment

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

?

Copy link
Member Author

Choose a reason for hiding this comment

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

The comment is intended to explain the type/structure of the argument.

Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer if you made it a regular ldoc comment above the definition. People copy things. ;-)

@Frenzie Frenzie modified the milestones: 2023.06, 2023.05 May 18, 2023
@Frenzie Frenzie added the Plugin label May 19, 2023
@Frenzie Frenzie merged commit 3d57752 into koreader:master May 19, 2023
@hius07 hius07 deleted the Exporter-selected-files branch May 19, 2023 08:01
@Frenzie
Copy link
Member

Frenzie commented May 19, 2023

I don't have time to look into it atm but just leaving a note that that last commit seems to have made the docs unhappy. :-)

@hius07
Copy link
Member Author

hius07 commented May 19, 2023

Don't know exactly what breaks the docs;

--- Parse and export highlights from selected documents.
-- @tparam table files list of files as a table of {[file_path] = true}
function Exporter:exportFilesNotes(files)

Maybe brackets?

@NiLuJe
Copy link
Member

NiLuJe commented May 19, 2023

Possibly, try to put that section between backticks? (It is code after all ;)).

@Frenzie
Copy link
Member

Frenzie commented May 19, 2023

If anybody should wonder in the future, fixed in #10465

@hius07
Copy link
Member Author

hius07 commented May 20, 2023

Thanks!

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.

FR: Export notes in current folder
3 participants