Note file management method and device, electronic equipment and storage medium
By monitoring changes in note files in electronic devices and updating their thumbnails, the problem of difficulty in distinguishing different versions of files on electronic devices is solved, and the efficiency of users in finding files is improved.
Patent Information
- Application Number
- CN202310347407.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, it is difficult for electronic devices to distinguish different versions of files based on the file content when displaying files, resulting in low user search efficiency.
By monitoring changes in note files, updating their corresponding thumbnails, and displaying these thumbnails when the file is viewed or opened, users can quickly locate the target file based on the thumbnail.
This improves the efficiency of users in finding files. Users can distinguish files of different edited versions based on thumbnails and quickly locate the target file for the required operation.
Smart Images

Figure CN118779289A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data file management, and in particular to a note file management method, device, electronic device and storage medium. Background Art
[0002] At present, with the continuous development of electronic technology, the types and functions of electronic devices are becoming more and more abundant, such as tablet computers suitable for learning and entertainment, laptop computers suitable for comprehensive information processing when the body is still, and ink screen devices suitable for reading.
[0003] When displaying files, some electronic devices use a method of displaying thumbnails of the file page content in the file icon to distinguish different files. However, when there are multiple different editing versions of the same editing task, the different editing versions often generate the same thumbnails based on the same file page content. This makes it difficult for users to quickly confirm the target file to be operated based on the content. Summary of the invention
[0004] The present invention provides a note file management method, device, electronic device and storage medium to solve the technical problem of low efficiency in searching for files by users in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides a note file management method, comprising:
[0006] Monitor the note files in the target storage area corresponding to the preset storage path, and each note file in the target storage area is associated with a thumbnail;
[0007] When a changed first note file is detected, a thumbnail corresponding to the first note file is updated, where the thumbnail is generated according to the page content of the corresponding first note file;
[0008] In response to the file viewing instruction, display thumbnails corresponding to all or part of the note files in the target storage area;
[0009] In response to a file opening instruction acting on the first thumbnail, a first note file corresponding to the first thumbnail is determined in a target storage area, and a target application is called to open the first note file.
[0010] In a second aspect, the present invention provides another note file management method in real time, comprising:
[0011] In response to the file saving instruction, obtain the home page content of the current newly created note file, and generate a thumbnail corresponding to the note file according to the home page content;
[0012] The note file and thumbnail are associated and saved in the target storage area corresponding to the preset storage path.
[0013] In a third aspect, the present invention provides a note file management device in real time, comprising:
[0014] A file monitoring module, used to monitor the note files in the target storage area corresponding to the preset storage path, and each note file in the target storage area is associated with a thumbnail;
[0015] A thumbnail update module, used for updating a thumbnail corresponding to the first note file when a change in the first note file is detected, wherein the thumbnail is generated according to the page content of the corresponding first note file;
[0016] A thumbnail display module, for displaying thumbnails corresponding to all or part of the note files in the target storage area in response to the file viewing instruction;
[0017] The file opening module is used to respond to the file opening instruction acting on the first thumbnail, determine the first note file corresponding to the first thumbnail in the target storage area, and call the target application to open the first note file.
[0018] In a fourth aspect, the present invention provides another note file management device in real time, including:
[0019] A thumbnail generation module, for obtaining the home page content of the newly created note file in response to a file saving instruction, and generating a thumbnail corresponding to the note file according to the home page content;
[0020] The file saving module is used to save the note files and thumbnails in association with each other in a target storage area corresponding to a preset storage path.
[0021] In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
[0022] one or more processors;
[0023] a memory for storing one or more computer programs;
[0024] When one or more computer programs are executed by one or more processors, the electronic device implements the note file management method of the first aspect or the second aspect.
[0025] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the note file management method of the first aspect or the second aspect.
[0026] As described above, the note file management method, device, electronic device and storage medium provided by the embodiments of the present invention associate and save the note file with the thumbnail generated according to the page content of the note file when storing the note file in the target storage area, and update the thumbnail corresponding to the note file when the content of the note file changes. When the user subsequently views the note file, the thumbnail corresponding to the note file is displayed, and the user can open the note file corresponding to the thumbnail by operating the thumbnail. Compared with the prior art, the embodiments of the present invention can generate thumbnails according to the areas where the page content of the note file has changed. Even for the same editing task, the user can distinguish different editing versions according to the thumbnails, so as to quickly locate the target file that needs to be operated. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A method flow chart of a note file management method provided by an embodiment of the present invention.
[0028] Figure 2 A system structure diagram of an electronic device provided in an embodiment of the present invention.
[0029] Figure 3 A schematic diagram of a display screen displaying thumbnails according to an embodiment of the present invention.
[0030] Figure 4 A schematic diagram of a display screen displaying a floating window provided by an embodiment of the present invention.
[0031] Figure 5 A schematic diagram of a screen filled with thumbnails provided in an embodiment of the present invention.
[0032] Figure 6 A timing diagram of a note file management method provided by an embodiment of the present invention.
[0033] Figure 7 A method flow chart of another note file management method provided by an embodiment of the present invention.
[0034] Figure 8 A schematic diagram of loading thumbnails provided by an embodiment of the present invention.
[0035] Fig. 9 A method flow chart of another note file management method provided by an embodiment of the present invention.
[0036] Fig.10 A schematic diagram of a display screen displaying an operation option menu provided by an embodiment of the present invention.
[0037] Fig.11 A method flow chart of a note file management method provided by an embodiment of the present invention.
[0038] Fig.12 A schematic diagram of the structure of a note file management device provided in an embodiment of the present invention.
[0039] Fig.13 A schematic diagram of the structure of another note file management device provided in an embodiment of the present invention.
[0040] Fig.14 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0042] It should be noted that the description of the present invention does not enumerate all optional implementation modes. After reading the description of the present invention, those skilled in the art should be able to realize that as long as the technical features do not contradict each other, any combination of technical features can constitute an optional implementation mode.
[0043] At present, when electronic devices display files, they generally identify different files by combining file names with file icons. Different types of files have different file icons when displayed. When a user needs to find a specific file among files of the same type, the file icon is no longer recognizable, and the user needs to check the file name to find the corresponding file. In addition, when the file name is too long, the user also needs to check the complete file name of each file, which makes the search efficiency low.
[0044] In order to solve the above problem, some electronic devices use the method of displaying thumbnails of file page contents in file icons to distinguish different files when displaying files. However, when there are multiple different editing versions of the same editing task, the different editing versions often generate the same thumbnails based on the same file page contents. In this way, it is still difficult for users to quickly confirm the target file to be operated based on the content.
[0045] In response to the above technical problems, this solution proposes a note file management method that can clearly identify different files when the electronic device displays the files, thereby improving the efficiency of users in finding files.
[0046] The following is a detailed description of the various embodiments of the present invention.
[0047] Figure 1A method flow chart of a note file management method provided in an embodiment of the present invention. The note file management method is implemented by an electronic device, and the electronic device can be a terminal device with a display screen.
[0048] Please refer to Figure 1 The note file management method includes steps S110 to S140:
[0049] S110. Monitor the note files in the target storage area corresponding to the preset storage path, and each note file in the target storage area is associated with a thumbnail.
[0050] In this embodiment, the architecture of the electronic device system is as follows: Figure 2 As shown, the system of the electronic device includes a note library application and a note application.
[0051] The note application refers to an application used to edit note files, such as adding a new note file, modifying the content of a note file, and opening a note file, etc. The note file refers to a file that records user notes.
[0052] The note library application refers to an application used to manage note files stored in the target storage area corresponding to the preset storage path. For example, it displays the file icon corresponding to the note file in the target storage area, or deletes the note file in the target storage area. Among them, the preset storage path refers to a pre-set path for storing note files, and the address pointed to by the path is the target storage area. The setting method of the preset storage path can be set according to actual needs. For example, the user can manually set a certain address as the preset storage path, or use the system's default storage path as the preset storage path, etc. In this embodiment, the setting method of the preset storage path is not limited.
[0053] In this embodiment, the note library application needs to monitor the note files in the target storage area corresponding to the preset storage path to confirm whether the note files in the target storage area have changed, such as the content of the note files has been modified or deleted.
[0054] Exemplarily, the note library application may register a modification event of the note file in the system of the electronic device, and the modification event is used to monitor the note file in the target storage area.
[0055] It should be further explained that each note file in the target storage area is associated with a thumbnail. Thumbnails refer to small images that are compressed, which usually contain hyperlinks to full-size images. Since thumbnails are small in size and load very quickly, they are used for quick browsing, which is equivalent to the preview and directory of image files.
[0056] In this embodiment, the thumbnail can be associated with the note file, and the thumbnail can be pointed to the corresponding note file. In one embodiment, when the user creates a new note file using the note application and saves it, the note application will generate a thumbnail corresponding to the note file, and associate the note file and the thumbnail and save them in the target storage area.
[0057] S120. When a changed first note file is detected, a thumbnail corresponding to the first note file is updated, where the thumbnail is generated according to the page content of the corresponding first note file.
[0058] When the note library application detects that the data content of the first note file has changed, the note library application will update the thumbnail corresponding to the first note file according to the page content of the first note file. The page content refers to the content on the page displayed by the note file after the user opens the note file through the note application. For example, after the user opens the note file through the note application and modifies the content of the note file, the user saves the note file to the target storage area again. At this time, the note library application can detect that the data of the note file has changed, and the thumbnail of the note file needs to be updated.
[0059] In one embodiment, when the note library application generates thumbnails based on the page content of the first note file, the thumbnails may be generated based on the page content that has changed in the first note file.
[0060] Specifically, after determining that the page content has changed, the note library application can capture a picture of the page where the page content is located, and use the captured picture as a thumbnail to replace the original thumbnail of the first note file in the target storage area, thereby completing the update of the thumbnail.
[0061] In another embodiment, in order to improve the clarity of the thumbnail display, the screenshot may not be a picture of the entire page, but a picture of the page content that has changed. Specifically, the note library application can determine the area of the page content that has changed, and take out the picture of the area as a thumbnail, so that when the thumbnail is displayed later, the user can observe the specific content of the thumbnail more clearly.
[0062] S130. In response to the file viewing instruction, thumbnails corresponding to all or part of the note files in the target storage area are displayed.
[0063] When the user subsequently needs to view the note file in the target storage area, the user can view it by sending a file viewing instruction to the electronic device, where the file viewing instruction is used to instruct the electronic device to display a thumbnail corresponding to the note file.
[0064] In this embodiment, the method for the user to send the file viewing instruction to the electronic device can be set according to actual needs. For example, a file viewing icon is displayed on the display screen of the electronic device, and the user clicks the file viewing icon by gesture or operating the mouse cursor, thereby sending the file viewing instruction to the electronic device. In another embodiment, a physical button is set on the electronic device, and the user can send the file viewing instruction to the electronic device by triggering the physical button.
[0065] After receiving the file viewing instruction, the electronic device will forward the file viewing instruction to the note library application. The note library application responds to the file viewing instruction and displays thumbnails corresponding to all or part of the note files in the target storage area on the display screen.
[0066] For example, Figure 3 As shown, Figure 3 10 is a display screen, and 20 is a thumbnail. In one embodiment, when the note library displays the thumbnail, the name of the note file corresponding to the thumbnail is displayed.
[0067] The number of thumbnails displayed by the note library application is determined by the area of the display screen and the area of the thumbnails. When the area of the display screen is sufficient to display all thumbnails at the same time, the note library application displays the thumbnails corresponding to all the note files in the target storage area on the display screen. When the area of the display screen is insufficient to display all thumbnails at the same time, the note library application needs to display the thumbnails corresponding to the note files in the target storage area in pages on the display screen, and the user can view more thumbnails corresponding to the note files by sliding down / turning pages, etc.
[0068] In one embodiment, after the note library application displays the thumbnail on the display screen, the user can also view the detailed content of the thumbnail by interacting with the electronic device.
[0069] For example, after the note library application displays a thumbnail on the display screen, the user can long-press the thumbnail through a gesture or a mouse cursor, and a vertex of the thumbnail will display a floating window with an area larger than the thumbnail, and the thumbnail will be displayed in the floating window. Figure 4 As shown, Figure 4 In the middle, 30 is a floating window. The user can further zoom in on a local position of the thumbnail in the floating window through a zoom gesture or a mouse wheel, so that the user can view the detailed content of the thumbnail conveniently.
[0070] In another embodiment, the user can also operate the floating window through gestures or mouse cursor to make the display range of the floating window fill the entire display screen. For example, the user can long press the floating window through gestures or mouse to make the display range of the floating window fill the entire display screen. Figure 5As shown, the user can view the detailed content of the thumbnail more clearly, so as to have the effect of previewing the note file.
[0071] In another embodiment, the user can also operate the floating window by gesture or mouse to open the note file corresponding to the floating window. For example, the user can double-click the floating window by gesture or mouse to open the corresponding note file. If the currently previewed note file is not the target note file to be opened, the method of opening the note file to confirm the content requires first loading the data of the note file to open the note file, and then closing to view the next note file. In the method of previewing thumbnails in the floating window, the current preview can be directly exited by operating other thumbnails and entering the preview of other note files. By comparing the two, it can be found that the former needs to complete the loading of the entire file data, and this data loading will not be actually used in the end; the latter (i.e., this solution) only needs to load thumbnails, and this solution can effectively reduce invalid data loading and improve interaction efficiency. If the previewed note file is the target note file to be opened, the method of previewing thumbnails in the floating window can open the note file by operating the thumbnail. Compared with the method of opening the note file to confirm the content, it only has the process of loading thumbnails in the floating window. The data processing volume of this process is small, the response speed is fast, and the impact on interaction efficiency is not great. Taking into account the two situations that the currently previewed note file is the target note file and is not the target note file, this solution improves the interaction efficiency and response speed as a whole.
[0072] S140. In response to a file opening instruction acting on the first thumbnail, a first note file corresponding to the first thumbnail is determined in a target storage area, and a target application is called to open the first note file.
[0073] After the note library application displays the thumbnail corresponding to the note file, the user can send a file opening instruction to the electronic device by operating the thumbnail, wherein the file opening instruction is used to instruct the electronic device to open the note file corresponding to the thumbnail operated by the user. The way in which the user operates the thumbnail can be set according to actual needs. For example, the user can double-click the thumbnail displayed on the display screen by gesture, thereby sending a file opening instruction to the electronic device.
[0074] After receiving the file opening instruction, the electronic device forwards the file opening instruction to the note library application. The note library application responds to the file opening instruction, determines the first note file corresponding to the first thumbnail in the target storage area according to the first thumbnail operated by the user, and calls the target application to open the first note file to display the page content of the first note file. The overall timing diagram is shown in FIG. Figure 6In addition, the target application refers to an application that has a function of displaying note files, and the target application can be set in advance, for example, the target application can be set as a note application.
[0075] As described above, the embodiment of the present invention associates and saves the note file with the thumbnail generated according to the page content of the note file when storing the note file in the target storage area, and updates the thumbnail corresponding to the note file when the content of the note file changes. When the user subsequently views the note file, the thumbnail corresponding to the note file is displayed, and the user can open the note file corresponding to the thumbnail by operating the thumbnail. Compared with the scheme of identifying files by using file names and unified file icons in the prior art, the user can roughly know the page content of the file by viewing the thumbnail in the embodiment of the present invention, so as to quickly locate the file, and there is no need to search for the file by viewing the name of the thumbnail, which improves the efficiency of the user's search for files. Compared with the prior art, the embodiment of the present invention can generate thumbnails according to the area where the page content of the note file changes. Even for the same editing task, the user can distinguish different editing versions according to the thumbnails, so as to quickly locate the target file to be operated.
[0076] Figure 7 A flowchart of another note file management method provided by an embodiment of the present invention is shown below. Figure 7 The provided note file management method is a specific implementation of the above note file management method, and the method includes:
[0077] S210: Monitor the note files in the target storage area corresponding to the preset storage path, and each note file in the target storage area is associated with a thumbnail.
[0078] S220. When a changed first note file is detected, a thumbnail corresponding to the first note file is updated, where the thumbnail is generated according to the page content of the corresponding first note file.
[0079] S230: In response to the file viewing instruction, determine a display order of thumbnails.
[0080] In this embodiment, after responding to the file viewing instruction, the note library application first needs to determine the display order of the thumbnails, wherein the display order of the thumbnails refers to the arrangement order of the thumbnails when the note library application displays the thumbnails on the display screen.
[0081] In one embodiment, when determining the display order of the thumbnails, the display order of the thumbnails may be determined based on any one of the creation time, the last use time, or the file name of the note file. For example, the note files may be sorted from earliest to latest according to the creation time of the note files, and the display order of the corresponding thumbnails may be determined based on the sorting of the note files.
[0082] Based on the above embodiment, the display order of the thumbnails is determined in step S230, including:
[0083] S231. Determine the display order of thumbnails corresponding to the note files according to the modification time of the note files in the target storage area.
[0084] In one embodiment, when determining the display order of thumbnails, the corresponding thumbnails can be sorted according to the modification time of the note files in the target storage area, thereby determining the display order of the thumbnails. The modification time of the note file refers to the time when the note file was last modified. Specifically, the note files can be sorted from the latest to the earliest according to the modification time, and the sorting result of the note files is the display order of the thumbnails corresponding to the note files. When the thumbnails are displayed later, the thumbnails with later modification times can be displayed first, so that the user can quickly locate the most recently modified note files.
[0085] In one embodiment, after determining the display order of the thumbnails in step S230, before displaying the thumbnails corresponding to all or part of the note files in the target storage area according to the display order in step S240, the method further includes:
[0086] S232: Load thumbnails according to the display order.
[0087] In one embodiment, after determining the display order of the thumbnails, before displaying the thumbnails, the note library application also needs to load the thumbnails in advance according to the display order. In computer-related fields, loading is the process of reading programs from a storage medium into memory. Since all programs must be loaded into memory to run, loading is to read the required files and information into memory, which is generally performed when the program is started. In this embodiment, the process of loading thumbnails is to read the thumbnails into memory.
[0088] In addition, when loading thumbnails, the thumbnails need to be loaded according to the display order of the thumbnails. When the configuration of the electronic device is high enough, the note library application can load all thumbnails at one time, and when the configuration of the electronic device is low, the note library application can load some thumbnails each time. The embodiment of the present invention can increase the speed of subsequent display of thumbnails by pre-loading thumbnails before displaying them.
[0089] Based on the above embodiment, step S232 loads thumbnails according to the display order, including:
[0090] Step S2321: Determine the maximum target number of thumbnails that can be loaded each time according to the area of the display screen and the area of the thumbnails.
[0091] In one embodiment, due to the fact that some electronic devices with poor configuration exist in actual use, such as ink screen devices, where the ink screen device refers to an electronic device using an electronic ink screen, the surface of the ink screen can display black and white patterns and texts like printed effects, and the display effect is very similar to that of paper. When the user is using the ink screen device, when the ink screen device needs to display a note file, the ink screen device needs to load the note file first and then display the note file. However, since the ink screen device does not need to perform complex functions, the performance of the ink screen device is poorer than that of devices such as mobile phones and tablets. When displaying thumbnails, the ink screen device generally loads all thumbnails at once. When there are too many thumbnails that need to be loaded, the loading speed of the ink screen device will slow down due to configuration reasons, resulting in a slower display speed of subsequent thumbnails, which greatly affects the user experience.
[0092] Based on this, in order to prevent the electronic device from slowing down the loading speed when loading thumbnails, this embodiment needs to determine the target number of thumbnails that can be loaded at most each time when loading thumbnails. In one embodiment, the target number of thumbnails that can be loaded at most each time can be determined based on the area of the display screen of the electronic device and the area of the thumbnails.
[0093] For example, the maximum number of thumbnails that can be displayed on the display screen at a time can be calculated based on the area of the display screen and the area of each thumbnail, and the target number of thumbnails that need to be loaded each time can be determined based on the maximum number of thumbnails that can be displayed on the display screen.
[0094] Based on the above embodiment, step S2321 determines the target number of thumbnails that can be loaded at most each time, including:
[0095] Step S23211: Divide the area of the display screen by the area of the thumbnail to obtain a first calculation result.
[0096] In one embodiment, the area of the display screen is divided by the area of a thumbnail to obtain a first calculation result. The area of the thumbnail refers to the size of the area occupied by the thumbnail on the display screen when it is displayed on the display screen. By calculating the first calculation result, the maximum number of thumbnails that can be displayed on the display screen at a time can be known.
[0097] Step S23212: multiply the first calculation result by a preset multiple to obtain the target number of thumbnails that can be loaded at most each time.
[0098] After the first calculation result is calculated, in order to ensure the display speed of the thumbnails and avoid loading too many thumbnails at one time, and retain a certain redundancy, the first calculation result can be multiplied by a preset multiple to obtain the target number of thumbnails that can be loaded at most each time. In one embodiment, the preset multiple can be set to 2.
[0099] The above is the specific process of determining the maximum target number of thumbnails that can be loaded each time.
[0100] Step S2322: Load thumbnails not exceeding the target number according to the display order.
[0101] After determining the target number of thumbnails that can be loaded at most each time, thumbnails not exceeding the target number can be loaded according to the display order.
[0102] For example, Figure 8 As shown, the maximum number of thumbnails that can be displayed on the display screen of the electronic device (the first calculation result) is 10, and a total of 40 thumbnails need to be displayed, which need to be displayed in 4 pages. Then the note library application needs to load the first 20 thumbnails in the display order. When the user turns the page to view the thumbnails on the second page, the note library application can release the first 10 thumbnails in the previous display order and continue to load the thumbnails in the display order of 20-30, and so on for other cases.
[0103] The above is the specific process of loading thumbnails according to the display order.
[0104] S240. Display thumbnails corresponding to all or part of the note files in the target storage area according to the display order.
[0105] After the thumbnails are loaded, the thumbnails corresponding to all or part of the note files in the target storage area may be displayed according to the display order.
[0106] S250. In response to a file opening instruction acting on the first thumbnail, a first note file corresponding to the first thumbnail is determined in a target storage area, and a target application is called to open the first note file.
[0107] As described above, the embodiment of the present invention calculates the target number of thumbnails that can be loaded at most each time before displaying the thumbnails, and loads thumbnails that do not exceed the target number according to the display order. The embodiment of the present invention can prevent the electronic device from loading all thumbnails at once, and can avoid affecting the display speed of subsequent thumbnails while ensuring the loading efficiency of thumbnails.
[0108] like Fig. 9 As shown, Fig. 9A flowchart of another note file management method provided by an embodiment of the present invention is shown below. Fig. 9 The provided note file management method is a specific implementation of the above note file management method, and the method includes:
[0109] S310, monitoring the note files in the target storage area corresponding to the preset storage path, each note file in the target storage area is associated with a thumbnail.
[0110] S320: When a changed first note file is detected, a thumbnail corresponding to the first note file is updated, where the thumbnail is generated according to the page content of the corresponding first note file.
[0111] Based on the above embodiment, step S320 updates the thumbnail corresponding to the first note file, including:
[0112] S323: Update the thumbnail corresponding to the first note file according to the changed content of the first note file.
[0113] In another embodiment, when the thumbnail corresponding to the first note file is updated, the thumbnail of the first note file can be updated according to the changed content of the first note file. The changed content refers to the data content that has changed. Exemplarily, when a certain section of data content in the first note file is modified, the note library application can locate the paragraph whose data content is modified through the modification change event of the note file, capture the image of the paragraph, and generate a corresponding second thumbnail based on the image and update the original thumbnail of the first note file. When the thumbnail corresponding to the first note file is subsequently displayed, the second thumbnail is displayed. In addition, when the data of multiple paragraphs in the first note file is modified, multiple images can be captured and one of them can be randomly selected as the second thumbnail.
[0114] Based on the above embodiment, step S323 updates the thumbnail corresponding to the first note file according to the changed content of the first note file, including:
[0115] S321. Determine the target page content of the first note file that has changed.
[0116] In one embodiment, when updating the thumbnail corresponding to the first note file, the target page content whose data content has changed in the first note file can be first determined. It is understandable that when multiple page contents in the first note file are modified, multiple target page contents can be determined at this time.
[0117] S322: Generate a corresponding target thumbnail according to the target page content and update the thumbnail so that when the thumbnail corresponding to the first note file is subsequently displayed, the target thumbnail is displayed in a loop.
[0118] After determining the target page content, further generate a target thumbnail corresponding to the target page content, and update the original thumbnail of the first note file according to the target thumbnail. When the thumbnail corresponding to the first note file is subsequently displayed, the target thumbnail is displayed in a circular scrolling manner. Exemplarily, assuming that three pages of content in the first note file are modified by the user, it can be determined that there are three target page contents. At this time, pictures of the three target page contents can be captured and three corresponding target thumbnails can be generated. When the thumbnail corresponding to the first note file is subsequently displayed, the three target thumbnails are displayed in a circular scrolling manner, so that the user can know the location where the data content in the first note file is modified by viewing the thumbnails.
[0119] S330. In response to the file viewing instruction, thumbnails corresponding to all or part of the note files in the target storage area are displayed.
[0120] S340. In response to a file opening instruction acting on the first thumbnail, a first note file corresponding to the first thumbnail is determined in the target storage area, and a target application is called to open the first note file.
[0121] S350: In response to the file deletion instruction acting on the second thumbnail, a second note file corresponding to the second thumbnail is determined in the target storage area, and a target application is called to delete the second note file and the second thumbnail.
[0122] In this embodiment, after the note library application displays the thumbnail corresponding to the note file, the user can send a file deletion instruction to the electronic device by operating the thumbnail, wherein the file deletion instruction is used to instruct the electronic device to delete the note file corresponding to the thumbnail operated by the user. The user's operation method on the thumbnail can be set according to actual needs, for example, Fig.10 As shown, the user can slide the thumbnails displayed on the screen horizontally through gestures or the mouse cursor. At this time, a vertex of the thumbnail can display the operation option menu 40, which includes multiple operation options such as deleting files, copying and renaming. After the user clicks the operation option to delete the file through gestures or the mouse cursor, a file deletion instruction can be sent to the electronic device.
[0123] After receiving the file deletion instruction, the electronic device will forward the file deletion instruction to the note library application. The note library application responds to the file deletion instruction, determines the second note file corresponding to the second thumbnail in the target storage area according to the second thumbnail operated by the user, and calls the target application to delete the second note file and the second thumbnail.
[0124] As described above, when updating the thumbnail corresponding to the first note file, the embodiment of the present invention updates the thumbnail corresponding to the first note file according to the changed content of the first note file, so that when the user needs to find the modified note file later, the corresponding note file can be quickly located by observing the content of the thumbnail, thereby improving the efficiency of the user in finding files.
[0125] Fig.11 This is a method flow chart of a note file management method provided by an embodiment of the present invention. The note file management method is implemented by an electronic device, and the electronic device can be a terminal device with a display screen. Please refer to Fig.11 The note file management method includes steps S410 to S420:
[0126] Step 410: In response to the file saving instruction, obtain the home page content of the newly created note file, and generate a thumbnail corresponding to the note file based on the home page content.
[0127] In this embodiment, when the user needs to take notes, the user can create a new note file through the note application of the electronic device and record the notes in the newly created note file. When the notes are recorded, the user can instruct the electronic device to save the current newly created note file by sending a file save instruction to the electronic device. Exemplarily, a file save icon is provided on the display interface of the note application. When the user triggers the file save icon, the file save instruction can be sent to the electronic device. After receiving the file save instruction, the electronic device forwards the file save instruction to the note application. The note application responds to the file save instruction and starts executing the save process for the current newly created note file. First, the note application obtains the homepage content of the current newly created note file, that is, the page content of the first page of the newly created note file, and then captures a picture of the homepage content, and generates a thumbnail corresponding to the newly created note file based on the picture.
[0128] Step 420: Save the note file and thumbnail in association with each other in a target storage area corresponding to a preset storage path.
[0129] After generating a thumbnail corresponding to the currently created note file, the note application further associates and saves the currently created handwriting file and the corresponding thumbnail in a target storage area corresponding to a preset storage path, so that subsequent note library applications can obtain and display the thumbnail corresponding to the note file in the target storage area.
[0130] As described above, after creating a new note file, the embodiment of the present invention associates the new note file with the corresponding thumbnail and saves it in the target storage area, so that when the user subsequently refers to the note file, the thumbnail corresponding to the note file is displayed, and the user can open the note file corresponding to the thumbnail by operating the thumbnail. Compared with the prior art, the embodiment of the present invention can generate thumbnails according to the area where the content of the note file page changes. Even for the same editing task, the user can distinguish different editing versions according to the thumbnails, so as to quickly locate the target file that needs to be operated.
[0131] Fig.12 A schematic diagram of the structure of a note file management device provided by an embodiment of the present invention. Fig.12 , the note file management device comprises:
[0132] The file monitoring module 510 is used to monitor the note files in the target storage area corresponding to the preset storage path, and each note file in the target storage area is associated with a thumbnail.
[0133] The thumbnail updating module 520 is used to update the thumbnail corresponding to the first note file when a changed first note file is detected, and the thumbnail is generated according to the page content of the corresponding first note file.
[0134] The thumbnail display module 530 is used to display thumbnails corresponding to all or part of the note files in the target storage area in response to the file viewing instruction.
[0135] The file opening module 540 is used to determine a first note file corresponding to the first thumbnail in the target storage area in response to a file opening instruction acting on the first thumbnail, and call a target application to open the first note file.
[0136] Based on the above embodiment, the thumbnail display module 530 includes:
[0137] The display order determination submodule is used to determine the display order of the thumbnails.
[0138] The thumbnail display submodule is used to display thumbnails corresponding to all or part of the note files in the target storage area according to the display order.
[0139] Based on the above embodiment, it also includes:
[0140] The thumbnail loading module is used to load thumbnails according to the display order after determining the display order of thumbnails and before displaying thumbnails corresponding to all or part of the note files in the target storage area according to the display order.
[0141] Based on the above embodiment, the thumbnail loading module includes:
[0142] The target number determination submodule is used to determine the maximum target number of thumbnails that can be loaded each time according to the area of the display screen and the area of the thumbnails.
[0143] The thumbnail loading submodule is used to load thumbnails not exceeding the target number according to the display order.
[0144] Based on the above embodiment, the target quantity determination submodule includes:
[0145] The first calculation unit is used to divide the area of the display screen by the area of the thumbnail to obtain a first calculation result.
[0146] The target data calculation unit is used to multiply the first calculation result by a preset multiple to obtain a target number of thumbnails that can be loaded at most each time.
[0147] On the basis of the above embodiment, the display order determination submodule is specifically used to determine the display order of the thumbnails corresponding to the note files according to the modification time of the note files in the target storage area.
[0148] On the basis of the above embodiment, the thumbnail updating module 520 is specifically configured to update the thumbnail corresponding to the first note file according to the changed content of the first note file.
[0149] Based on the above embodiment, the thumbnail updating module 520 includes:
[0150] The modified content determination submodule is used to determine the target page content of the first note file that has changed.
[0151] The thumbnail update submodule is used to generate a corresponding target thumbnail according to the target page content and update the thumbnail so that when the thumbnail corresponding to the first note file is displayed subsequently, the target thumbnail is displayed in a loop.
[0152] Based on the above embodiment, it also includes:
[0153] The file deletion module is used to respond to the file deletion instruction acting on the second thumbnail, determine the second note file corresponding to the second thumbnail in the target storage area, and call the target application to delete the second note file and the second thumbnail.
[0154] The note file management device provided in the embodiment of the present invention is included in an electronic device and can be used to execute the note file management method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0155] It is worth noting that in the embodiment of the above-mentioned note file management device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0156] Fig.13 A schematic diagram of the structure of another note file management device provided by an embodiment of the present invention. Fig.13 , the note file management device comprises:
[0157] The thumbnail generation module 610 is used to obtain the home page content of the current newly created note file in response to the file saving instruction, and generate a thumbnail corresponding to the note file according to the home page content;
[0158] The file saving module 620 is used to save the note file and the thumbnail in association to a target storage area corresponding to a preset storage path.
[0159] The note file management device provided in the embodiment of the present invention is included in an electronic device and can be used to execute the note file management method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0160] It is worth noting that in the embodiment of the above-mentioned note file management device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0161] Fig.14 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig.14 As shown, the electronic device includes a processor 710 and a memory 720, and may also include an input device 730, an output device 740 and a communication device 750; the number of the processor 710 in the electronic device may be one or more, Fig.14 A processor 710 is taken as an example; the processor 710, the memory 720, the input device 730, the output device 740 and the communication device 750 in the electronic device can be connected via a bus or other means. Fig.14 The example of connecting through bus is taken in the following.
[0162] The memory 720 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the note file management method in the embodiment of the present invention. The processor 710 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 720, that is, implementing the above-mentioned note file management method.
[0163] The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 720 may further include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0164] The input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 740 may include a display device such as a display screen.
[0165] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to perform relevant operations in the note file management method provided in any embodiment of the present invention, and has corresponding functions and beneficial effects.
[0166] Those skilled in the art should appreciate that the embodiments of the present invention may be provided as a method, a system, or a computer program product.
[0167] Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0169] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0170] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0171] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A note file management method, characterized in that: include: Monitor the note files in the target storage area corresponding to the preset storage path, each note file in the target storage area is associated with a thumbnail; When a changed first note file is detected, updating a thumbnail corresponding to the first note file, wherein the thumbnail is generated according to the page content of the corresponding first note file; In response to the file viewing instruction, displaying thumbnails corresponding to all or part of the note files in the target storage area; In response to a file opening instruction acting on a first thumbnail, a first note file corresponding to the first thumbnail is determined in the target storage area, and a target application is called to open the first note file.
2. A note file management method according to claim 1, characterized in that: The displaying of thumbnails corresponding to all or part of the note files in the target storage area includes: Determining a display order of the thumbnails; According to the display order, thumbnails corresponding to all or part of the note files in the target storage area are displayed.
3. A note file management method according to claim 2, characterized in that: After determining the display order of the thumbnails, before displaying the thumbnails corresponding to all or part of the note files in the target storage area according to the display order, the method further includes: The thumbnails are loaded according to the display order.
4. A note file management method according to claim 3, characterized in that: The step of loading the thumbnails according to the display order includes: Determining the maximum number of thumbnails that can be loaded each time according to the area of the display screen and the area of the thumbnails; According to the display order, no more than the target number of thumbnails are loaded.
5. A note file management method according to claim 4, characterized in that: The step of determining the maximum number of thumbnails that can be loaded at a time includes: Dividing the area of the display screen by the area of the thumbnail to obtain a first calculation result; The first calculation result is multiplied by a preset multiple to obtain the target number of thumbnails that can be loaded at most each time.
6. A note file management method according to claim 2, characterized in that: The determining the display order of the thumbnails comprises: According to the modification time of the note files in the target storage area, the display order of the thumbnails corresponding to the note files is determined.
7. A note file management method according to claim 1, characterized in that: The updating of the thumbnail corresponding to the first note file includes: According to the changed content of the first note file, a thumbnail corresponding to the first note file is updated.
8. A note file management method according to claim 7, characterized in that: The updating of the thumbnail corresponding to the first note file according to the changed content of the first note file includes: Determine the target page content where the first note file has changed; A corresponding target thumbnail is generated according to the target page content and the thumbnail is updated, so that when the thumbnail corresponding to the first note file is subsequently displayed, the target thumbnail is displayed in a loop.
9. A note file management method according to claim 1, characterized in that: Also includes: In response to a file deletion instruction acting on a second thumbnail, a second note file corresponding to the second thumbnail is determined in the target storage area, and the target application is called to delete the second note file and the second thumbnail.
10. A note file management method, characterized in that: include: In response to a file saving instruction, obtaining the home page content of the currently created note file, and generating a thumbnail corresponding to the note file according to the home page content; The note file and the thumbnail are saved in association with each other in a target storage area corresponding to a preset storage path.
11. A note file management device, characterized in that: include: A file monitoring module, used for monitoring the note files in the target storage area corresponding to the preset storage path, each note file in the target storage area is associated with a thumbnail; A thumbnail updating module, configured to update a thumbnail corresponding to a first note file when a change in the first note file is detected, wherein the thumbnail is generated according to the page content of the corresponding first note file; A thumbnail display module, configured to display thumbnails corresponding to all or part of the note files in the target storage area in response to a file viewing instruction; The file opening module is used to respond to the file opening instruction acting on the first thumbnail, determine the first note file corresponding to the first thumbnail in the target storage area, and call the target application to open the first note file.
12. A note file management device, characterized in that: include: A thumbnail generation module, for obtaining the home page content of the current newly created note file in response to a file saving instruction, and generating a thumbnail corresponding to the note file according to the home page content; The file saving module is used to save the note file and the thumbnail in association with each other in a target storage area corresponding to a preset storage path.
13. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the electronic device implements the note file management method as described in any one of claims 1-10.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the note file management method as described in any one of claims 1-10 is implemented.
Citation Information
Patent Citations
Method and device for cycle display of thumbnails on folder icon
CN103177101A
Previews of electronic notes
CN105408861A
Generation method of dynamic thumbnail and related product
CN107465954A
Image auditing processing method and device, electronic equipment and storage medium
CN109829069A
File management method and electronic device
CN111143299A
