sosuisen / logseq-cardbox

Plugin to add thumbnail cards to Logseq that are displayed in order of update.
Mozilla Public License 2.0
10 stars 0 forks source link

Function enhancement suggestion #4

Open duiliuliu opened 11 months ago

duiliuliu commented 11 months ago

Please enhance the file management capability of Logseq with this plugin. It would be great if the plugin can support cardBox display for attachment files and filter different types of files, such as filtering PDF files or PNG files.

sosuisen commented 11 months ago

The attachment manager is a good idea. However, Logseq's plugin API doesn't seem to be able to handle attachments very well. If I can find an implementation idea that might work, I will consider it.

duiliuliu commented 11 months ago

Share my ideas.

  1. how to read assets files? You can refer to this project (https://github.com/xyhp915/logseq-assets-plus/blob/main/src/index.tsx#L252), which demonstrates the implementation method for reading assets files.

  2. how to display assets files First of all, we support file classification management, as shown in the picture below, which includes the ability to filter and process files by their types. Secondly, the display order of files can be based on a general file management approach, supporting sorting by the update time. Lastly, for individual files, we would like to have two different display options. The list mode will show the file names and other key attributes (such as update time and type) in a list format. The shelf mode will display the files as book cards, laid out in a flat manner.

  3. assets management Which file operations need to be supported

    • rename file
    • remove file
    • copy file
    • search file
    • sort file

file type filter example:

image

the list mode example:

image

The shelf mode example:

image

related reference: https://github.com/sosuisen/logseq-cardbox https://github.com/stdword/logseq13-full-house-plugin/discussions/9 https://github.com/xyhp915/logseq-assets-plus

sosuisen commented 11 months ago

Thank you for the beneficial information. Indeed, Logseq still needs more asset management functions.

The CardBox plugin does not aim to be a file manager as its primary purpose. Therefore, it may be the role of other plugins.

Shelf mode matches CardBox's aim.

sosuisen commented 11 months ago

futurized has an idea on Logseq's Discord channel. This may be part of what you want. https://discord.com/channels/725182569297215569/775936939638652948/1181654923344093305 He would like feedback on his idea.

duiliuliu commented 1 month ago

I have tried to implement this plugin on my own, thank you for your feedback and repository.

sosuisen commented 1 month ago

This is a great plugin! Thank you for reaching out!