File content pasting method and device, equipment, medium and program product
By interactively displaying candidate content and position items between unopened files, the operation of pasting file content without opening the file is realized, solving the problems of cumbersome and low efficiency in the prior art, and improving human-computer interaction efficiency.
Patent Information
- Application Number
- CN202311137069.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2025-03-04
AI Technical Summary
In the prior art, file pasting operations require opening at least one file, which is complicated and has low human-computer interaction efficiency.
By displaying at least two unopened files, in response to user interaction, displaying candidate content items and candidate position items, the user can select the target content items and the target insertion location to achieve the operation of pasting the file content without opening the file.
The file pasting operation process is simplified, the human-computer interaction efficiency is improved, and the problem of frequently opening and switching files is avoided due to the display size limitation.
Smart Images

Figure CN119557270A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction, and in particular to a method, device, equipment, medium and program product for pasting file content. Background Art
[0002] A file is a collection of information stored on a computer device with a single name, used to record various data. A file can be a document, image, code, program, etc. In a common application scenario, a user can paste at least part of the content of file A into file B.
[0003] In the related art, a user opens file A, selects at least a portion of content from file A and copies it, then opens file B and pastes the content to a location in file B. Alternatively, a user turns on a split-screen mode of a computer device to display file A and file B in split-screen mode, and the user selects at least a portion of content from file A and drags it to a location in file B, so that the content is pasted into file B.
[0004] However, the operation method of the related art requires opening at least one file to complete pasting, which is cumbersome and has low human-computer interaction efficiency. Summary of the invention
[0005] The present application provides a method, device, equipment, medium and program product for pasting file content. The technical solution is as follows:
[0006] According to one aspect of the present application, a method for pasting file content is provided, the method being executed by a computer device, the method comprising:
[0007] Displaying at least two unopened files, the at least two files comprising a first file and a second file;
[0008] In response to an interactive operation on the first file, displaying at least one candidate content item corresponding to the first file, where the at least one candidate content item is obtained by dividing file content in the first file;
[0009] In response to a selection operation on the at least one candidate content item, determining a target content item, the target content item being the selected at least one candidate content item;
[0010] In response to an interactive operation on the second file, determining a target insertion position in the second file;
[0011] Paste the file content corresponding to the target content item from the first file to the target insertion position in the second file.
[0012] According to another aspect of the present application, a device for pasting file content is provided, the device comprising:
[0013] A display module, used for displaying at least two unopened files, wherein the at least two files include a first file and a second file;
[0014] The display module is configured to display at least one candidate content item corresponding to the first file in response to an interactive operation on the first file, where the at least one candidate content item is obtained by dividing the file content in the first file;
[0015] a processing module, configured to determine a target content item in response to a selection operation on the at least one candidate content item, wherein the target content item is the selected at least one candidate content item;
[0016] The processing module is used to determine a target insertion position in the second file in response to an interactive operation on the second file;
[0017] The pasting module is used to paste the file content corresponding to the target content item from the first file to the target insertion position in the second file.
[0018] According to another aspect of the present application, a method for pasting file content is provided, the method being executed by a computer device, the method comprising:
[0019] Displaying at least two unopened folders, the at least two folders comprising a first folder and a second folder;
[0020] In response to an interactive operation on the first folder, displaying at least one candidate file corresponding to the first folder, where the at least one candidate file is used to indicate a file in the first folder;
[0021] In response to a selection operation on the at least one candidate file, determining a target file, the target file being the at least one selected candidate file;
[0022] In response to an interactive operation on the second folder, the target file is pasted from the first folder to the second folder.
[0023] According to another aspect of the present application, a device for pasting file content is provided, the device comprising:
[0024] A display module, used for displaying at least two unopened folders, wherein the at least two folders include a first folder and a second folder;
[0025] The display module is used to display at least one candidate file corresponding to the first folder in response to an interactive operation on the first folder, wherein the at least one candidate file is used to indicate a file in the first folder;
[0026] A processing module, configured to determine a target file in response to a selection operation on the at least one candidate file, wherein the target file is the at least one selected candidate file;
[0027] The pasting module is used for pasting the target file from the first folder to the second folder in response to an interactive operation on the second folder.
[0028] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the method for pasting file contents as described above.
[0029] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for pasting file contents as described above.
[0030] According to another aspect of the present application, a computer program product is provided, which includes computer instructions, the computer instructions are stored in a computer-readable storage medium, a processor obtains the computer instructions from the computer-readable storage medium, and the processor loads and executes the computer instructions to implement the method for pasting file contents as described above.
[0031] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0032] On the one hand, the method for pasting file contents provided by the embodiment of the present application can paste the file contents of the first file to the target insertion position of the second file without opening any file, thereby pasting the file contents of the first file into the second file. Compared with the method in the related art that requires opening at least one file for pasting, the operation process is simplified and the human-computer interaction efficiency is improved. The above scheme is also suitable for copying-pasting or cutting-pasting file contents when the display screen of the computer device is small, without opening and switching back and forth between multiple files.
[0033] On the other hand, the method for pasting file contents provided in the embodiment of the present application can paste at least one file in the first folder into the second folder without opening any folder, which can simplify the operation process and improve the efficiency of human-computer interaction. The above scheme is also suitable for copying and pasting or cutting and pasting files when the display screen of the computer device is small, without opening and switching back and forth between multiple folders. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 A structural block diagram of a computer system provided by an exemplary embodiment is shown;
[0036] Figure 2 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0037] Figure 3 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0038] Figure 4 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0039] Figure 5 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0040] Figure 6 A flowchart of a method for pasting file contents provided by an exemplary embodiment is shown;
[0041] Figure 7 A flowchart of a method for pasting file contents provided by an exemplary embodiment is shown;
[0042] Figure 8 A flowchart of a method for pasting file contents provided by an exemplary embodiment is shown;
[0043] Fig. 9 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0044] Fig.10 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0045] Fig.11 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0046] Fig.12 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0047] Fig.13 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0048] Fig.14 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0049] Fig.15 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0050] Fig.16 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0051] Fig.17 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0052] Fig.18 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment;
[0053] Fig.19 A flowchart of a method for pasting file contents provided by an exemplary embodiment is shown;
[0054] Fig. 20 A flowchart of a method for pasting file contents provided by an exemplary embodiment is shown;
[0055] Fig.21 A block diagram of a device for pasting file contents provided by an exemplary embodiment is shown;
[0056] Fig. 22 A block diagram of a device for pasting file contents provided by an exemplary embodiment is shown;
[0057] Fig.23 A structural block diagram of a computer device provided by an exemplary embodiment is shown. DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0060] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0061] It should be noted that before collecting relevant data of the user (such as: various files and file contents in the computer device, various folders and the files contained therein) and during the process of collecting relevant data of the user, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the relevant data of the user are terminated, that is, the relevant data of the user is not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0062] In the embodiments of the present application, artificial intelligence (AI) technology is also involved. Artificial intelligence is the theory, method, technology and application system of simulating, extending and expanding human intelligence, perceiving the environment, acquiring knowledge and using knowledge to obtain the best results using digital computers or machines controlled by digital computers. In other words, artificial intelligence is a comprehensive technology of computer science, which attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline involving a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, pre-trained model technology, operation / interaction system, mechatronics, etc. Among them, pre-trained models are also called large models and basic models, which can be widely used in downstream tasks in various major directions of artificial intelligence after fine-tuning. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0063] It should be understood that, although the terms first, second, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0064] Figure 1 The structure block diagram of a computer system 100 provided by an exemplary embodiment of the present application is shown. The computer system 100 can be implemented as a system architecture of a method for pasting file contents. The computer system 100 includes: a terminal 120 and a server 140.
[0065] The terminal 120 may be an electronic device such as a mobile phone, a tablet computer, a vehicle-mounted terminal (vehicle computer), a wearable device, a PC (Personal Computer), an unmanned reservation terminal, etc. A client that runs a target application may be installed in the terminal 120, and the target application may be a file-type application that provides functions such as file viewing, copying, pasting, and moving. It may also be other applications with functions such as file viewing, copying, pasting, and moving, such as chat applications, office applications, etc., which are not limited in this application. In addition, this application does not limit the form of the target application, including but not limited to App (Application, application), applets, etc. installed in the terminal 120, and may also be in the form of a web page. This application does not limit the type of file, including but not limited to local or online documents, images, videos, audio, codes, etc. In some embodiments, the file may also be located in a folder.
[0066] Server 140 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. Server 140 may be a backend server of the above-mentioned target application, used to provide backend services for the client of the target application.
[0067] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0068] In some embodiments, the server 140 can also be implemented as a node in a blockchain system. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, platform product service layer, and application service layer.
[0069] The terminal 120 and the server 140 may communicate with each other via a network, such as a wired or wireless network.
[0070] In the method for pasting file contents provided in the embodiment of the present application, the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. Figure 1 Taking the implementation environment of the scheme shown as an example, the method for pasting file contents can be executed by the terminal 120 (such as the client of the target application installed and running in the terminal 120 executes the method for pasting file contents), or the method for pasting file contents can be executed by the server 140, or the terminal 120 and the server 140 can interact and cooperate to execute it, and this application does not limit this.
[0071] Those skilled in the art will appreciate that the number of the terminals 120 may be more or less. For example, there may be only one terminal 120, or there may be dozens or hundreds of terminals 120, or more. The embodiment of the present application does not limit the number and device type of the terminals.
[0072] The related art can provide two ways of pasting file contents. The user opens file A, selects at least a portion of the content from file A and copies it, then opens file B and pastes the content to a position in file B. Alternatively, the user turns on the split-screen mode of the computer device, displays file A and file B on the split screen, and the user selects at least a portion of the content from file A and drags it to a position in file B, so that the content is pasted into file B.
[0073] The above two methods both require at least one file to be opened to complete pasting, which is cumbersome to operate and has low human-computer interaction efficiency. The embodiment of the present application provides a method for pasting file content, so that content pasting can be completed without opening any file, which simplifies the operation steps and can improve human-computer interaction efficiency.
[0074] On the one hand, the method is applied to a computer device for example. The computer device can be Figure 1The terminal 120 shown. The type of the file may be a document (at least one of a txt document, a word document, a pdf document, an excel document, and a ppt document), and the display mode of the file includes one of a file list or a file icon. The first file may also be replaced by a first electronic document or a first document, and the second file may also be replaced by a second electronic document or a second document.
[0075] The following embodiments briefly describe the steps of the method in different file display modes.
[0076] ·The file display mode is file list
[0077] Figure 2 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0078] Step 1: The computer device displays at least two unopened files, where the at least two files include a first file and a second file.
[0079] like Figure 2 As shown in the schematic diagram (1) in FIG. 1 , multiple files are displayed in the file list 10, and the multiple files include: document B, document A, table A, collection table B, document C, table B, collection table C. The multiple files can be displayed according to at least one of the name, creator, editor, and last edit time. Each of the above files is displayed as a list item in the file list 10. In this embodiment, the first file 101 is document B, and the second file 102 is document C.
[0080] Step 2: In response to the interactive operation on the first file, the computer device displays at least one candidate content item corresponding to the first file, where the at least one candidate content item is obtained by dividing the file content in the first file.
[0081] For example, the interactive operation is a long press operation, and at least one candidate content item is at least two candidate content items. Figure 2 As shown in the schematic diagram (1) in FIG. 1 , the user long presses the first file 101, such as Figure 2 As shown in the schematic diagram (2) in the figure, the computer device displays at least two candidate content items 11 corresponding to the first file 101 at the upper edge of the first file 101. The at least two candidate content items 11 are obtained by dividing the file content in the first file 101. In this embodiment, the file content in the first file 101 is divided according to paragraphs, and the paragraph number and the beginning of each paragraph are displayed. Then the at least two candidate content items 11 include: "1. The breeze is blowing...", "2. He is gently...", "3. He opened...", "4. Autumn is coming...". Among them, "1. The breeze is blowing..." represents the first paragraph in the first file, and the beginning of the first paragraph is "The breeze is blowing".
[0082] In some embodiments, the file content of the first file is divided into multiple paragraphs using indents, such as at least one of a first line indent, a hanging indent, a left indent, and a right indent. The computer device detects the indents corresponding to the file content in the first file, divides the file content of the first file based on the indents, and determines multiple paragraphs of the first file. Or, the file content of the first file is divided into multiple paragraphs by a first character, and the first character includes at least one of a section break, a page break, and a carriage return. The computer device detects the first character corresponding to the file content in the first file, divides the file content of the first file based on adjacent first characters, and determines multiple paragraphs of the first file. Among them, the computer device regards the file content between every two adjacent first characters as a paragraph.
[0083] Step 3: In response to a selection operation on at least one candidate content item, the computer device determines a target content item, where the target content item is the selected at least one candidate content item.
[0084] like Figure 2 As shown in the schematic diagram (3) in FIG. 1 , the user selects a target content item from at least two candidate content items 11, and the selected target content item is the third paragraph “3. He opened ..” 111. Optionally, the target content item may be highlighted or displayed in a selected state to indicate that the target content item has been selected.
[0085] Step 4: The computer device determines a target insertion position in the second file in response to the interactive operation on the second file.
[0086] Take the interactive operation including moving the target content item to the display position where the second file 102 is located as an example. Figure 2 As shown in the schematic diagram (3) in the figure, the user moves the third paragraph of the target content item "3. He opened .." 111 downward to the display position where the second file 102 is located, and the computer device automatically determines the target insertion position in the second file. In this embodiment, the target insertion position is set to the end of the file content of the second file.
[0087] Step 5: The computer device pastes the file content corresponding to the target content item from the first file to the target insertion position in the second file.
[0088] When the user moves the third paragraph “3. He opened ..” 111 of the target content item downward to the display position of the second file 102 , the computer device pastes the third paragraph “3. He opened ..” 111 of the first file corresponding to the target content item to the end of the file content of the second file 102 .
[0089] At this point, the file content of the first file is pasted into the second file.
[0090] ·Files are displayed as file icons
[0091] Figure 3 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0092] Step 1: The computer device displays at least two unopened files, where the at least two files include a first file and a second file.
[0093] like Figure 3 As shown in the schematic diagram (1) in FIG. 1 , multiple files are displayed with file icons 12, and the multiple files include: document B, document A, table A, document C. The multiple files can be displayed according to at least one of name, creator, editor, and last edit time. Each file is displayed as a file icon. In this embodiment, the first file 121 is document B, and the second file 122 is document C.
[0094] Step 2: In response to the interactive operation on the first file, the computer device displays at least one candidate content item corresponding to the first file, where the at least one candidate content item is obtained by dividing the file content in the first file.
[0095] For example, the interactive operation is a long press operation, and at least one candidate content item is at least two candidate content items. Figure 3 As shown in the schematic diagram (1) in FIG. 1 , the user long presses the first file 121, such as Figure 3 As shown in the schematic diagram (2) in FIG. 1 , the computer device displays at least two candidate content items 13 corresponding to the first file 121 on the right edge of the first file 121. The at least two candidate content items 13 are obtained by dividing the file content in the first file 121. In this embodiment, the file content in the first file 121 is divided according to paragraphs, and the paragraph number and the beginning of each paragraph are displayed. Then the at least two candidate content items 13 include: "1. A gentle breeze is coming...", "2. He gently...", "3. He opened...", "4. Autumn is coming...". Among them, "1. A gentle breeze is coming..." represents the first paragraph in the first file, and the beginning of the first paragraph is "A gentle breeze is coming".
[0096] In some embodiments, the file content of the first file is divided into multiple paragraphs using indents, such as at least one of a first line indent, a hanging indent, a left indent, and a right indent. The computer device detects the indents corresponding to the file content in the first file, divides the file content of the first file based on the indents, and determines multiple paragraphs of the first file. In some embodiments, the file content of the first file is divided into multiple paragraphs by a first character, and the first character includes at least one of a section break, a page break, and a carriage return. The computer device detects the first character corresponding to the file content in the first file, divides the file content of the first file based on adjacent first characters, and determines multiple paragraphs of the first file. Among them, the computer device regards the file content between every two adjacent first characters as a paragraph.
[0097] Step 3: In response to a selection operation on at least one candidate content item, the computer device determines a target content item, where the target content item is the selected at least one candidate content item.
[0098] like Figure 3 As shown in the schematic diagram (3) in FIG. 1 , the user selects a target content item from at least two candidate content items 13, and the selected target content item is the fourth paragraph "4. Autumn is coming..." 131. Optionally, the target content item may be highlighted or displayed in a selected state to indicate that the target content item has been selected.
[0099] Step 4: The computer device determines a target insertion position in the second file in response to the interactive operation on the second file.
[0100] Take the interactive operation including moving the target content item to the display position where the second file 122 is located as an example. Figure 3 As shown in the schematic diagram (3), the user moves the fourth paragraph of the target content item "4. Autumn is coming..." 131 downward to the display position of the second file 122, and the computer device automatically determines the target insertion position in the second file. In this embodiment, the target insertion position is set to the end of the file content of the second file.
[0101] Step 5: The computer device pastes the file content corresponding to the target content item from the first file to the target insertion position in the second file.
[0102] When the user moves the fourth paragraph of the target content item “4. Autumn is coming…” 131 downward to the display position of the second file 122 , the computer device pastes the fourth paragraph of the first file corresponding to the target content item “4. Autumn is coming…” 131 to the end of the file content of the second file 122 .
[0103] At this point, the file content of the first file is pasted into the second file.
[0104] In summary, the method for pasting file contents provided in the embodiment of the present application can paste the file contents of the first file to the target insertion position of the second file without opening any file, thereby pasting the file contents of the first file into the second file. Compared with the method in the related art that requires opening at least one file before pasting, the operation process is simplified and the human-computer interaction efficiency is improved. Moreover, the above scheme can also avoid being limited by the display screen size of the computer device, and there is no need to open and switch back and forth between multiple files.
[0105] On the other hand, the method is applied to a computer device for example. The computer device can be Figure 1 The terminal 120 shown in the figure. The folder includes multiple files, the types of the files are not limited, the display mode of the folder includes one of a folder list or a folder icon, and the display mode of the files in the folder is not limited. The following embodiments briefly describe the steps of the method in different display modes of the folder.
[0106] Folders are displayed as folder lists
[0107] Figure 4 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0108] Step 1: The computer device displays at least two unopened folders, where the at least two folders include a first folder and a second folder.
[0109] like Figure 4 As shown in the schematic diagram (1) in FIG. 1 , multiple folders are displayed in the folder list 14, and the multiple folders include: folder B, folder A, and folder C. The multiple folders can be displayed according to at least one of the name, creator, editor, and last edit time. Each of the above folders is displayed as a folder list item in the folder list 14. In this embodiment, there is no restriction on the display method of the files in each folder. The first folder 141 is folder B, and the second folder 142 is folder C.
[0110] Step 2: In response to an interactive operation on the first folder, the computer device displays at least one candidate file corresponding to the first folder, where the at least one candidate file is used to indicate a file in the first folder.
[0111] For example, the interactive operation is a long press operation, and at least one candidate file is at least two candidate files. Figure 4 As shown in the schematic diagram (1) in FIG. 1 , the user long presses the first folder 141, such as Figure 4As shown in the schematic diagram (2) in FIG. 1 , the computer device displays at least two candidate files 15 corresponding to the first folder 141 at the upper edge of the first folder 141. The at least two candidate files 15 are used to indicate files in the first folder 141. In this embodiment, the first folder 141 includes file X, file Y, and file Z. At least one of the name, keyword, creator, and editor of the file may be displayed in the candidate file.
[0112] Step 3: The computer device determines a target file in response to a selection operation on at least one candidate file, where the target file is the at least one selected candidate file.
[0113] like Figure 4 As shown in the schematic diagram (3) in FIG. 1 , the user selects a target file from at least two candidate files 15, and the selected target file is file Z 151. Optionally, the target file can be highlighted or displayed in a selected state to indicate that the target file has been selected.
[0114] Step 4: In response to the interactive operation on the second folder, the computer device pastes the target file from the first folder to the second folder.
[0115] Take the interactive operation including moving the target file to the display location where the second folder is located as an example, Figure 4 As shown in the schematic diagram (3) in FIG. 1 , the user moves the target file Z151 downward to the display position where the second folder 142 is located, and the computer device pastes the target file Z151 from the first folder 141 to the second folder 142. At this point, the file in the first folder is pasted into the second folder.
[0116] Folders are displayed as folder icons
[0117] Figure 5 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0118] Step 1: The computer device displays at least two unopened folders, where the at least two folders include a first folder and a second folder.
[0119] like Figure 5 As shown in the schematic diagram (1) in FIG. 1 , a plurality of folders are displayed with a folder icon 16, and the plurality of folders include: folder B, folder A, and folder C. The plurality of folders may be displayed according to at least one of name, creator, editor, and last edited time. Each of the above folders is displayed as a folder icon. In this embodiment, there is no restriction on the display method of the files in each folder. The first folder 161 is folder B, and the second folder 162 is folder C.
[0120] Step 2: In response to an interactive operation on the first folder, the computer device displays at least one candidate file corresponding to the first folder, where the at least one candidate file is used to indicate a file in the first folder.
[0121] For example, the interactive operation is a long press operation, and at least one candidate file is at least two candidate files. Figure 5 As shown in the schematic diagram (1) in FIG. 1 , the user long presses the first folder 161, such as Figure 4 As shown in the schematic diagram (2) in FIG. 1 , the computer device displays at least two candidate files 17 corresponding to the first folder 161 on the right edge of the first folder 161. The at least two candidate files 17 are used to indicate files in the first folder 161. In this embodiment, the first folder 161 includes file X, file Y, and file Z. At least one of the name, keyword, creator, and editor of the file may be displayed in the candidate file.
[0122] Step 3: The computer device determines a target file in response to a selection operation on at least one candidate file, where the target file is the at least one selected candidate file.
[0123] like Figure 4 As shown in the schematic diagram (3) in FIG. 1 , the user selects a target file from at least two candidate files 17, and the selected target file is file Z 171. Optionally, the target file may be highlighted or displayed in a selected state to indicate that the target file has been selected.
[0124] Step 4: In response to the interactive operation on the second folder, the computer device pastes the target file from the first folder to the second folder.
[0125] Take the interactive operation including moving the target file to the display position where the second folder 162 is located as an example. Figure 4 As shown in the schematic diagram (3) in the figure, the user moves the target file Z171 downward to the display position where the second folder 162 is located, and the computer device pastes the target file Z171 from the first folder 161 to the second folder 162.
[0126] At this point, the files in the first folder are pasted into the second folder.
[0127] In summary, the method for pasting file contents provided in the embodiment of the present application can paste at least one file in the first folder into the second folder without opening any folder, thereby simplifying the operation process and improving the efficiency of human-computer interaction. Moreover, the above solution can also avoid being limited by the display screen size of the computer device, and there is no need to open and switch back and forth between multiple folders.
[0128] Next, taking the operation on a file as an example, the method of pasting the file content is generally described.
[0129] Figure 6 A flowchart of a method for pasting file contents provided by an exemplary embodiment of the present application is shown, and the method is applied to a computer device for example. The computer device may be Figure 1 The terminal 120 shown. The method includes steps 210, 220, 230, 240 and 250:
[0130] Step 210: display at least two unopened files, where the at least two files include a first file and a second file.
[0131] The first file is a file for providing the content of the file to be pasted.
[0132] The second file is a file used to paste the content of the file to be pasted.
[0133] Optionally, the file may be at least one of an online file or a local file. In some embodiments, the first file and the second file are both online files; or, the first file and the second file are both local files; or, the first file is a local file and the second file is an online file; or, the first file is an online file and the second file is a local file. This embodiment does not limit this.
[0134] Optionally, the type of the file may include at least one of a document, an image, a video, an audio, and a code. Further, each type of the file may also include a subtype. Exemplarily, the document may also include at least one of a txt document, a word document, a pdf document, an excel document, a ppt document, and a collection table. The image may also include at least one of a jpg image, a gif image, and a bmp image.
[0135] Optionally, the types and / or subtypes of the first file and the second file may be the same or different. Exemplarily, the first file and the second file are both documents, wherein the first file and the second file are both word documents; or, the first file and the second file are both documents, wherein the first file is a word document and the second file is a pdf document; or, the first file is a video and the second file is a document; or, the first file is an image and the second file is a document. This embodiment does not limit this.
[0136] Optionally, the display mode of the file includes a file list or a file icon. Exemplarily, when the display mode is a file list, the first file is displayed as a first list item in the file list, and the second file is displayed as a second list item in the file list. When the display mode is a file icon, the first file is displayed as a first file icon, and the second file is displayed as a second file icon.
[0137] In some embodiments, both the first file and the second file are in an unopened state. Exemplarily, when the display mode is a file list, the first file is displayed as the first list item in the file list, and the first file may also display at least one of the file name, the last edit time, the editor, and the creator, without displaying the specific file content in the first file.
[0138] Specifically, the computer device displays at least two unopened files, and the at least two files include a first file and a second file. The first file may include at least one, and the second file may include at least one. That is, this embodiment supports pasting the file content of at least one first file into at least one second file. For example, the first file includes two, namely, the first file 1 and the first file 2, and the second file includes one, and at least a portion of the selected content of the first file 1 and at least a portion of the selected content of the first file 2 can be pasted into the second file.
[0139] Step 220: In response to the interactive operation on the first file, display at least one candidate content item corresponding to the first file, where the at least one candidate content item is obtained by dividing the file content in the first file.
[0140] An interactive operation refers to an operation of evoking at least one candidate content item of the first file; or, an interactive operation refers to an operation of triggering the division of the file content of the first file to obtain at least one candidate content item; or, an interactive operation refers to an operation of triggering a computer device to display at least one candidate content item corresponding to the first file.
[0141] Optionally, the interactive operation includes a click operation, a double-click operation or a long press operation. Long press means that the pressing duration is greater than or equal to a threshold from the moment of pressing. The threshold can be set according to actual technical needs, for example, set to 2 seconds (s).
[0142] In some embodiments, a selection operation may be included before the long press operation. The selection operation and the long press operation may be two independent operations. The selection operation may also be the first half of the long press operation. For example, a computer device displays multiple unopened files, and the user selects the first file through the selection operation. Then, the user may long press the first file.
[0143] The candidate content items refer to content items obtained by dividing the file content in the first file, and different candidate content items correspond to different file contents in the first file. The candidate content items may also be referred to as candidate content unit modules.
[0144] Exemplarily, at least one candidate content item corresponding to the first file may refer to Figure 2Candidate content item 11 of schematic diagram (2) in FIG. 1 , or reference Figure 3 Candidate content item 13 of schematic diagram (2) in FIG.
[0145] In some embodiments, before step 210, or after step 210 and before step 220, the computer device pre-divides the file content in the first file based on the file content in the first file to obtain at least one candidate content item corresponding to the first file, and then, after the computer device receives an interactive operation on the first file in step 220, the computer device displays the at least one candidate content item corresponding to the pre-divided first file in response to the interactive operation on the first file.
[0146] In some embodiments, after the computer device receives an interactive operation on the first file in step 220, the computer device divides the file content in the first file in response to the interactive operation on the first file, obtains at least one candidate content item corresponding to the first file, and displays at least one candidate content item corresponding to the first file.
[0147] In some embodiments, the computer device determines a division method that matches the type of the first file based on the type of the first file, and divides the file content in the first file based on the division method to obtain at least one candidate content item corresponding to the first file.
[0148] For example, if the type of the first file is a document, the division method of document matching may be based on paragraphs, and the file content of the first file may be divided according to paragraphs to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a paragraph in the document. If the type of the first file is an image, the division method of image matching may be based on layers, and the file content of the first file may be divided according to layers to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a layer of the image. If the type of the first file is a video, the division method of video matching may be based on video frame images, and the file content of the first file may be divided according to video frame images to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a video frame image of the video. If the type of the first file is an audio file, the division method of audio matching may be based on dialogue sentences, and the file content of the first file may be divided according to dialogue sentences to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a round of dialogue in the audio file.
[0149] In some embodiments, when there are multiple division methods for the file content of the first file, the file content of the first file is divided according to the priorities corresponding to the multiple division methods, and at least one candidate content item corresponding to the first file is obtained. Exemplarily, the file content of the first file is divided according to the division method from high to low priority, and at least one candidate content item corresponding to the first file is obtained.
[0150] For example: the type of the first file is a document, and the division method of document matching includes division by paragraphs, or division by sentences. Among them, the priority of division by paragraphs is greater than the priority of division by sentences. When dividing the file content of the first file, the file content of the first file is divided according to the high-priority division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a paragraph in the document. After the high-priority division method cannot be used or the first division has been performed according to the high-priority division method, the file content of the first file is divided according to the low-priority division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a sentence in the document.
[0151] In some embodiments, when there are multiple ways to divide the file content of the first file, the file content of the first file is divided according to the levels corresponding to the multiple division methods to obtain at least one candidate content item corresponding to the first file. Dividing the file content can also be called "breaking up" the file content.
[0152] Exemplarily, if the file content of the first file is currently divided into the first division, the file content of the first file is divided according to the first level division method among the multiple division methods to obtain at least one candidate content item corresponding to the first file. If the file content of the first file is currently divided into the second division, the file content of the first file is divided according to the second level division method among the multiple division methods to obtain at least one candidate content item corresponding to the first file.
[0153] For example: the type of the first file is a document, and the division method of document matching includes division by paragraphs, or division by sentences. Among them, division by paragraphs is the first-level division method, and division by sentences is the second-level division method. When the file content of the first file is currently divided into the first division, the file content of the first file is divided according to the first-level division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a paragraph in the document. When the file content of the first file is currently divided into the second division, or the second division is performed on the candidate content items that have been divided, the file content of the first file is divided according to the second-level division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a sentence in the document. Among them, the candidate content items further divided by the second-level division method are also called the next-level candidate content items. For example: a sentence is a next-level candidate content item of a paragraph.
[0154] For example: the type of the first file is a document, specifically an Excel document. The division method for matching Excel documents includes division according to tables, sheets, rows or columns, or cells. Among them, division according to tables is the first-level division method, division according to rows or columns is the second-level division method, and division according to cells is the third-level division method. When the file content of the first file is currently divided into the first division, the file content of the first file is divided according to the first-level division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a table sheet in the Excel document. When the file content of the first file is currently divided into the second division, or the second division is performed on the candidate content items that have been divided, the file content of the first file is divided according to the second-level division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a row or a column in a table sheet of the Excel document. When the file content of the first file is currently divided into the third division, or the candidate content items that have been divided for the second time are divided for the third time, the file content of the first file is divided according to the third-level division method to obtain at least one candidate content item corresponding to the first file, and the file content corresponding to each candidate content item is a specific cell in a row or a column in a sheet of the Excel document. Among them, after the first-level division, the candidate content items obtained by further division through the second-level division method are also called the next-level candidate content items. After the second-level division, the candidate content items obtained by further division through the third-level division method are also called the next-level candidate content items. For example: a row or column is a next-level candidate content item of the sheet, and a cell is a next-level candidate content item of the row or column.
[0155] In some embodiments, taking the type of the first file as a document, specifically a word document, as an example, the file content of the first file is divided into multiple paragraphs using indents, such as at least one of a first line indent, a hanging indent, a left indent, and a right indent. The computer device detects the indents corresponding to the file content in the first file, divides the file content of the first file based on adjacent indents, and determines at least one candidate content item corresponding to the first file. Among them, the computer device uses the file content between every two adjacent indents as a candidate content item. Or, the file content of the first file is divided into multiple candidate content items by a first character, and the first character includes at least one of a section break, a page break, and a carriage return. The computer device detects the first character corresponding to the file content in the first file, divides the file content of the first file based on adjacent first characters, and determines at least one candidate content item corresponding to the first file. Among them, the computer device uses the file content between every two adjacent first characters as a candidate content item.
[0156] Furthermore, for a candidate content item, the second character can be used to divide it into multiple sentences, and the second character includes at least one of a period, a semicolon, a colon, and a quotation mark. When further dividing the candidate content items, the computer device detects the second character of the first candidate content item in at least one candidate content item, divides the file content of the first candidate content item based on adjacent second characters, and obtains at least one next-level candidate content item corresponding to the first candidate content item. The computer device regards the file content between every two adjacent second characters as a next-level candidate content item.
[0157] In some embodiments, taking the type of the first file as a document, specifically a ppt document, as an example, the file content of the first file is divided into multiple slides using different slide page numbers. The computer device detects the slide page number corresponding to the file content in the first file, divides the file content of the first file based on the slide page number, and determines at least one candidate content item corresponding to the first file. The computer device regards the file content corresponding to each page of the slide as a candidate content item. The division method of the file content in a candidate content item can be the same as the above embodiment.
[0158] Optionally, when the ppt document does not include slide page numbers, a content recognition model is also installed and executed in the computer device, and the content recognition model is used to perform content recognition on the file content included in each slide. The computer device recognizes the file content included in each slide of the first file through the content recognition model, divides the file content based on the semantics of the file content, and determines at least one candidate content item corresponding to the first file.
[0159] In some embodiments, taking the type of the first file as a document, specifically an Excel document, as an example, the file content of the first file is divided into multiple tables using different sheets. The computer device detects the number of sheets in the first file, divides the file content of the first file based on the number of sheets, and determines at least one candidate content item corresponding to the first file. Among them, the computer device regards the file content corresponding to each sheet as a candidate content item. The computer device can determine the number of sheets through a first quantity statistical function, and the first quantity statistical function can be a SHEET function, expressed as "=sheets()", which is used to return the number of sheets in the Excel document.
[0160] Furthermore, for a candidate content item, a row can be divided into multiple rows, or a column can be divided into multiple columns. When further dividing the first candidate content item, the computer device detects the number of rows or columns (or row labels and column labels) of the first candidate content item in at least one candidate content item, and divides the file content of the first candidate content item based on the number of rows or columns (or row labels and column labels) to obtain at least one next-level candidate content item corresponding to the first candidate content item. The computer device regards the file content of each row or column as a next-level candidate content item.
[0161] Further, taking the case where the next-level candidate content item is a row (or a column) of the first candidate content item as an example, when further dividing a row (or a column), the computer device detects the number of cells in each row (or each column), divides the file content of each row (or each column) based on the number of cells, and obtains at least one next-next-level candidate content item corresponding to the next-level candidate content item. The computer device can determine the number of cells in each row (or each column) by a second quantity counting function, and the second quantity counting function includes a COUNTA function, expressed as "=COUNTA()", which is used to return the number of non-empty cells in the sheet table.
[0162] In some embodiments, a computer device displays at least one next-level candidate content item corresponding to a first candidate content item in response to a triggering operation on a first candidate content item among at least one candidate content item; wherein the at least one next-level candidate content item is obtained by dividing the file content corresponding to the first candidate content item.
[0163] Trigger operations include long press operations.
[0164] The first candidate content item refers to a candidate content item selected by the triggering operation among the at least one candidate content item.
[0165] Exemplarily, in response to a triggering operation on a first candidate content item among at least one candidate content item, the computer device divides the file content corresponding to the first candidate content item to obtain at least one next-level candidate content item corresponding to the first candidate content item.
[0166] In the above embodiment, the file content in the first file can be divided into different fine-grained levels, which is helpful for the user to more accurately determine the location where the paste is desired and improve the operation accuracy.
[0167] In some embodiments, a second neural network model is installed and run on the computer device, wherein the second neural network model includes a natural language processing (NLP) model.
[0168] Exemplarily, step 220 performed by the computer device is specifically implemented as follows: in response to the interactive operation on the first file, the computer device adopts the second neural network model to preprocess the file content of the first file to obtain a preprocessed first file; based on the first regular expression, the file content of the preprocessed first file is divided to obtain at least one candidate content item corresponding to the first file.
[0169] Preprocessing includes removing special characters, punctuation marks, stop words, etc. to better identify content.
[0170] For example, if the file is a document, a general document will use indentation as a paragraph. The first regular expression refers to an expression obtained by defining a rule with indentation and compiling the rule with a regular expression.
[0171] Exemplarily, the first regular expression may be compiled using the re.compile() function in Python. Then, the re.findall() function in Python is used to divide the file content of the preprocessed first file based on the first regular expression to obtain at least one candidate content item corresponding to the first file.
[0172] Furthermore, in response to a trigger operation on a first candidate content item among at least one candidate content item, the computer device divides the file content corresponding to the first candidate content item based on a second regular expression to obtain at least one next-level candidate content item corresponding to the first candidate content item.
[0173] For example, if the file is a document, a general document will use indentation as a paragraph and a period as the end of the previous sentence. The second regular expression refers to an expression obtained by defining a rule with a period and compiling the rule with a regular expression.
[0174] Exemplarily, the re.compile() function in Python can be used to compile the second regular expression. Then, the re.findall() function in Python is used to divide the file content corresponding to the first candidate content item based on the second regular expression to obtain at least one next-level candidate content item corresponding to the first candidate content item.
[0175] In the above embodiment, the file content of the first file is divided by the second neural network model installed and run in the computer device, which can improve the efficiency and accuracy of the division and make the human-computer interaction operation more intelligent.
[0176] In some embodiments, after step 220 and before step 230, the computer device also displays the first file in a fixed display area in response to a move operation on the first file; wherein the fixed display area is the top display area, the bottom display area, the display area where the dividing line is located, and the area specified by the move operation.
[0177] The move operation refers to an operation of moving the location of the first file.
[0178] A fixed display area refers to a display area pre-divided on a computer device.
[0179] After the computer device displays at least one candidate content item of the first file, the computer device also displays the first file in a fixed display area in response to a move operation on the first file. Optionally, the computer device may also display at least one candidate content item corresponding to the first file in the fixed display area, and the positional relationship between the first file and the at least one candidate content item remains unchanged.
[0180] In some embodiments, the first file includes at least two files. Then, in response to the move operation on the at least two first files, the computer device displays at least one of the at least two first files in a fixed display area; wherein the at least one file includes at least one of the following:
[0181] At least one file selected by the move operation;
[0182] at least one file whose list distance to the second file exceeds a threshold;
[0183] At least one file that is most highly associated with the second file.
[0184] The list distance refers to the distance between a first list item corresponding to a first file and a second list item corresponding to a second file in a file list.
[0185] The threshold refers to the maximum list distance. It can be set according to actual technical needs. In this embodiment, it is set according to the length of the display screen of the computer device, and the threshold can be the same as the length value. When the list distance between the first file and the second file exceeds the threshold, it means that the first file and the second file cannot be displayed on the same screen.
[0186] The correlation refers to the similarity between the file content of the first file and the file content of the second file; or, the correlation refers to the probability value of pasting the file content of the first file into the second file. For example, if the file content of the first file and the second file are both news topics, the probability value of pasting the file content between the two files is relatively large, that is, the correlation is high.
[0187] Optionally, the fixed display area is used to fixedly display at least one file. When the first file includes only one, the computer device fixedly displays the first file in the fixed display area. When the first file includes at least two, the computer device can fixedly display at least one file selected by the move operation, and / or at least one file whose list distance from the second file exceeds a threshold, and / or at least one file with the highest association with the second file in the fixed display area.
[0188] In the above embodiment, by fixedly displaying at least one of the first files in the fixed display area of the computer device, the user's pasting operation can be facilitated, so that the user does not need to switch back and forth between the first file and the second file during the pasting process.
[0189] Step 230: In response to a selection operation on at least one candidate content item, a target content item is determined, where the target content item is the selected at least one candidate content item.
[0190] The selection operation refers to an operation of selecting a target content item from at least one candidate content item.
[0191] The selection operation includes one of a click operation, a double-click operation, a touch operation, a long press operation, and a drag operation.
[0192] The target content item is at least one candidate content item selected from the at least one candidate content item.
[0193] Optionally, the target content item includes at least one. That is, this embodiment supports pasting the file content corresponding to at least one target content item into the second file each time. Exemplarily, the user can click on the target content items in sequence to select multiple target content items.
[0194] In some embodiments, after the user selects the target content item through the selection operation, the computer device highlights the target content item, or the computer device displays the target content item in a selected state to indicate that the target content item is selected. Optionally, the computer device also displays a deselect button, and the user can deselect the selected target content item by clicking the deselect button.
[0195] Step 240: Determine a target insertion position in the second file in response to the interactive operation on the second file.
[0196] An interactive operation refers to an operation that triggers a computer device to determine a target insertion position in the second file; or, an interactive operation refers to an operation in which a user moves a target content item to a display position where the second file is located; or, an interactive operation refers to an operation in which a user moves a target content item directly to the target insertion position in the second file.
[0197] The target insertion position refers to the pasting position of the file content corresponding to the target content item in the second file.
[0198] Optionally, the target content item corresponds to the target insertion position, and different target content items may correspond to different target insertion positions, or different file contents corresponding to the target content items correspond to different target insertion positions. The target insertion position may be at least one of the beginning position of the second file, the end position, and a specific position between file contents in the second file.
[0199] For example, if the target content item includes one, the target insertion position can be set to the beginning of the second file by default. Or, if the target content item includes two, namely target content item 1 and target content item 2, the target content item corresponds to the target insertion position 1, the target content item 2 corresponds to the target insertion position 2, and the target insertion position 1 and the target insertion position 2 are different insertion positions in the second file.
[0200] In some embodiments, before step 240, the computer device predetermines the target insertion position in the second file as a preset insertion position. Then, after the computer device receives the interactive operation of the second file in step 240, the predetermined preset insertion position is determined as the target insertion position of the second file.
[0201] In some embodiments, after the computer device receives the interactive operation on the second file in step 240, the computer device determines the target insertion position in the second file in real time in response to the interactive operation on the second file. For example, if the interactive operation refers to an operation in which the user directly moves the target content item to the target insertion position in the second file, the computer device determines the target insertion position selected by the user as the target insertion position in the second file.
[0202] Step 250 , pasting the file content corresponding to the target content item from the first file to the target insertion position in the second file.
[0203] Exemplarily, the computer device pastes the file content corresponding to the target content item from the first file to the target insertion position in the second file. It should be noted that this embodiment can be applied to copy-paste, move-paste, or cut-paste.
[0204] Optionally, the computer device further displays a confirmation button. After the computer device pastes the file content corresponding to the target content item from the first file to the target insertion position in the second file, the user confirms that the pasting is completed by clicking the confirmation button.
[0205] In summary, the method for pasting file contents provided by the embodiment of the present application is that the computer device displays at least two unopened files, the at least two files include a first file and a second file; in response to the interactive operation on the first file, at least one candidate content item corresponding to the first file is displayed, and the at least one candidate content item is obtained by dividing the file content in the first file; in response to the selection operation on the at least one candidate content item, the target content item is determined, and the target content item is at least one selected candidate content item; in response to the interactive operation on the second file, the target insertion position in the second file is determined; the file content corresponding to the target content item is pasted from the first file to the target insertion position in the second file. In the above scheme, the file content of the first file can be pasted into the second file without opening the first file and the second file, which can simplify the operation process and improve the efficiency of human-computer interaction. Moreover, by displaying the candidate content items of the first file, the computer device can help the user accurately select the file content to be pasted, and by determining the target insertion position in the second file, the computer device can accurately determine the pasting position, thereby improving the accuracy of the operation.
[0206] Next, how to display at least one candidate content item corresponding to the first file is described.
[0207] Figure 7 A flow chart of a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0208] In some embodiments, step 220 performed by the computer device may be implemented as step 222:
[0209] Step 222: In response to the interactive operation on the first file, display at least one candidate content item corresponding to the first file in the surrounding area of the first file.
[0210] The peripheral area of the first document includes a 360-degree edge area around the first document.
[0211] An interactive operation refers to an operation of evoking at least one candidate content item of the first file; or, an interactive operation refers to an operation of triggering the division of the file content of the first file to obtain at least one candidate content item; or, an interactive operation refers to an operation of triggering a computer device to display at least one candidate content item corresponding to the first file.
[0212] Optionally, the interactive operation includes a click operation, a double-click operation, or a long press operation. Exemplarily, in response to the interactive operation on the first file, the computer device displays at least one candidate content item corresponding to the first file in the peripheral area of the first file. In some embodiments, in order not to affect the display of other files, at least one candidate content item does not cover other files, or at least one candidate content item only covers the edge area of other files.
[0213] In this embodiment, by displaying at least one candidate content item corresponding to the first file in the surrounding area of the first file, it is helpful for the user to know the first file corresponding to the currently displayed candidate content item, and secondly, it will not block the original first file when displayed, which is beneficial to user operation and improves the efficiency of human-computer interaction.
[0214] The display mode of the file includes one of a file list or a file icon. The following embodiments are described in different display modes of the file. The display mode 1 of the file list is specifically implemented as step 224, and the display mode 2 of the file icon is specifically implemented as step 226:
[0215] Method 1
[0216] In some embodiments, at least two files are displayed using a file list. The first file corresponds to a first list item in the file list, and the second file corresponds to a second list item in the file list. Step 222 is specifically implemented as step 224:
[0217] Step 224, in response to the interactive operation on the first file, display at least one candidate content item corresponding to the first file in an edge area of a first edge of a first list item corresponding to the first file; wherein the first edge is an upper edge or a lower edge of the first list item.
[0218] The edge area refers to the display area where the edge of the first list item corresponding to the first file is located.
[0219] The first edge is the top edge or the bottom edge of the first list item.
[0220] Optionally, at least one candidate content item corresponding to the first file is displayed in the same row. Exemplarily, in response to an interactive operation on the first file, the computer device displays at least one candidate content item corresponding to the first file in the same row in an edge region of an upper edge or a lower edge of a first list item corresponding to the first file.
[0221] Method 2
[0222] In some embodiments, at least two files are displayed using file icons. The first file corresponds to the first file icon, and the second file corresponds to the second file icon. Step 222 is specifically implemented as step 226 ( Figure 7 not shown):
[0223] Step 226: In response to the interactive operation on the first file, display at least one candidate content item corresponding to the first file in an edge area of a first edge of a first file icon corresponding to the first file; wherein the first edge is a left edge or a right edge of the first file icon.
[0224] The edge area refers to a display area where the edge of the first file icon corresponding to the first file is located.
[0225] The first edge is a left edge or a right edge of the first file icon.
[0226] Optionally, at least one candidate content item corresponding to the first file is displayed in the same column. Exemplarily, in response to an interactive operation on the first file, the computer device displays at least one candidate content item corresponding to the first file in the same column in an edge area of the left edge or right edge of the first file icon corresponding to the first file.
[0227] In the above embodiment, based on different display modes of files, at least one candidate content item corresponding to the first file is displayed accordingly, thereby improving the flexibility of displaying the at least one candidate content item corresponding to the first file.
[0228] Optional display mode
[0229] In some embodiments, the at least one candidate content item is at least two candidate content items, and the computer device displays the at least two candidate content items corresponding to the first file in order based on the order of the file contents corresponding to the at least two candidate content items in the first file.
[0230] In some embodiments, when the computer device displays the at least two candidate content items corresponding to the first file, each of the at least two candidate content items displays at least one of the following information:
[0231] A sequence number, used to indicate the position of the file content corresponding to the candidate content item in the first file;
[0232] The header content of the file content corresponding to the candidate content item;
[0233] The tail content of the file content corresponding to the candidate content item;
[0234] Summary information of the file content corresponding to the candidate content item.
[0235] For example, taking the division of the file content in the first file according to paragraphs as an example, the at least two candidate content items include candidate content item 1 and candidate content item 2, wherein the file content corresponding to candidate content item 1 is the first paragraph in the first file, and the file content corresponding to candidate content item 2 is the second paragraph in the first file, then when the computer device displays at least two candidate content items on the same line, candidate content item 1 is displayed in front of candidate content item 2. Then when the computer device displays at least two candidate content items on the same column, candidate content item 1 is displayed above candidate content item 2. The information displayed by candidate content item 1 includes sequence number 1 and the header content and / or tail content and / or summary information of the first paragraph, and the information displayed by candidate content item 2 includes sequence number 2 and the header content and / or tail content and / or summary information of the second paragraph.
[0236] In this embodiment, the computer device displays the above information of the candidate content items, which helps the user know the specific file content corresponding to each candidate content item and helps the user select the target content item from the at least two candidate content items corresponding to the first file.
[0237] In some embodiments, at least one candidate content item is at least two candidate content items, and the computer device switches and displays the at least two candidate content items to at least two updated candidate content items in response to a switching operation on the at least two candidate content items; wherein at least one candidate content item among the at least two updated candidate content items is different from the at least two candidate content items before the switching display.
[0238] The switching operation includes a sliding operation along a first direction; or, the switching operation includes a clicking operation or a touching operation on a switching button, and the switching button is used to switch the display of candidate content items.
[0239] For example, the at least two candidate content items corresponding to the first file include candidate content item 1, candidate content item 2, candidate content item 3, and candidate content item 4. The computer device currently displays candidate content item 1 and candidate content item 2. Then, in response to a switching operation on the at least two candidate content items, the computer device switches the currently displayed candidate content item 1 and candidate content item 2 to updated candidate content item 2 and candidate content item 3, or switches the display to updated candidate content item 3 and candidate content item 4.
[0240] Take the switching operation including a sliding operation along the first direction as an example. When at least two candidate content items are displayed on the same row, the first direction includes the left-right direction. When at least two candidate content items are displayed on the same column, the first direction includes the up-down direction. Specifically, in response to the sliding operation along the first direction on at least two candidate content items, the computer device cancels the display of at least one candidate content item located in the positive direction of the first direction, and newly displays at least one candidate content item located in the reverse direction of the first direction.
[0241] For example, at least two candidate content items corresponding to the first file are displayed on the same line, and the at least two candidate content items corresponding to the first file include candidate content item 1, candidate content item 2, candidate content item 3, and candidate content item 4. The computer device currently displays candidate content item 1 and candidate content item 2. Then, in response to a leftward sliding operation on the at least two candidate content items, the computer device cancels the display of candidate content item 1 and candidate content item 2 located in the left direction, and newly displays candidate content item 3 and candidate content item 4 located in the opposite direction (right direction) of the left direction.
[0242] For example, at least two candidate content items corresponding to the first file are displayed in the same column, and the at least two candidate content items corresponding to the first file include candidate content item 1, candidate content item 2, candidate content item 3, and candidate content item 4. The computer device currently displays candidate content item 1 and candidate content item 2. Then, in response to the upward sliding operation on the at least two candidate content items, the computer device cancels the display of candidate content item 1 and candidate content item 2 located in the upper direction, and newly displays candidate content item 3 and candidate content item 4 located in the opposite direction (lower direction) of the upper direction.
[0243] In this embodiment, the at least one candidate content item is at least two candidate content items, and the computer device can display more or fewer candidate content items corresponding to the first file, which is beneficial for the user to select the target content item from the at least two candidate content items corresponding to the first file.
[0244] Next, how to determine the target insertion position in the second file is described.
[0245] Figure 8 A flow chart of a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0246] In some embodiments, step 240 performed by the computer device includes three implementation methods. In practical applications, one of the methods can be selected or several methods can be used in combination. Among them, method 1 includes step 310, method 2 includes step 320, and method 3 includes step 330:
[0247] Method 1
[0248] Step 310: In response to the interactive operation on the second file, determine the default insertion position in the second file as the target insertion position in the second file.
[0249] The default insertion position refers to an insertion position pre-defined in the second file.
[0250] Optionally, different target content items correspond to the same default insertion position. There is no need to process the target content item, and when the file content corresponding to the target content item needs to be pasted, it is directly pasted to the default insertion position.
[0251] Exemplarily, in response to the interactive operation on the second file, the computer device determines the default insertion position in the second file as the target insertion position in the second file.
[0252] In some embodiments, step 310 is specifically implemented as step 312:
[0253] Step 312: In response to moving the target content item to the display area where the second file is located, determine the default insertion position in the second file as the target insertion position in the second file.
[0254] The interactive operation on the second file includes moving the target content item to the display area where the second file is located.
[0255] Exemplarily, in response to moving the target content item to the display area where the second file is located, the computer device determines a default insertion position in the second file as a target insertion position in the second file.
[0256] Method 2
[0257] Step 320: In response to the interactive operation on the second file, determine the insertion position indicated by the interactive operation as the target insertion position in the second file.
[0258] The user can select the insertion position in the second file by himself through interactive operation.
[0259] Exemplarily, in response to the interactive operation on the second file, the computer device determines the insertion position indicated by the interactive operation as the target insertion position in the second file.
[0260] In some embodiments, step 320 is specifically implemented as step 322 and step 324:
[0261] Step 322, in response to the first interactive operation on the second file, display at least one candidate position item corresponding to the second file, the at least one candidate position item is obtained by dividing the file content in the second file, and the at least one candidate position item is used to provide at least two candidate insertion positions.
[0262] The first interactive operation refers to an operation of evoking at least one candidate location item of the second file; or, the first interactive operation refers to an operation of triggering the division of the file content of the second file to obtain at least one candidate location item; or, the interactive operation refers to an operation of triggering a computer device to display at least one candidate location item corresponding to the second file.
[0263] Optionally, the first interaction operation includes a click operation, a double-click operation, or a long press operation.
[0264] The candidate position item refers to a position item obtained by dividing the file content of the second file, and at least one candidate position item is used to provide at least two candidate insertion positions. Different candidate position items correspond to different file contents in the second file.
[0265] For example, if the second file includes candidate position item 1, then two candidate insertion positions can be provided, namely, the insertion position before candidate position item 1 and the insertion position after candidate position item 1. Or, if the second file includes candidate position item 1 and candidate position item 2, then three candidate insertion positions can be provided, namely, the insertion position before candidate position item 1, the insertion position between candidate position item 1 and candidate position item 2, and the insertion position after candidate position item 2.
[0266] In some embodiments, before step 320, or after step 320 and before step 322, the computer device pre-divides the file content in the second file based on the file content in the second file to obtain at least one candidate position item corresponding to the second file, and then, after the computer device receives the first interactive operation on the second file in step 322, the computer device displays the at least one candidate position item corresponding to the pre-divided second file in response to the first interactive operation on the second file.
[0267] In some embodiments, after the computer device receives the first interactive operation on the second file in step 322, the computer device divides the file content in the second file in response to the first interactive operation on the second file, obtains at least one candidate position item corresponding to the second file, and displays at least one candidate position item corresponding to the second file.
[0268] In some embodiments, the computer device determines a division method that matches the type of the second file based on the type, and divides the file content in the second file based on the division method to obtain at least one candidate position item corresponding to the second file.
[0269] For example, if the type of the second file is a document, the division method of document matching can be divided according to paragraphs, and the file content of the second file can be divided according to paragraphs to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate position item is a paragraph in the document. At this time, the candidate insertion positions include the insertion position before each paragraph, the insertion position after each paragraph, and the insertion position between every two adjacent paragraphs. If the type of the second file is an image, the division method of image matching can be divided according to layers, and the file content of the second file can be divided according to layers to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate position item is a layer of the image. At this time, the candidate insertion positions include the insertion position before each layer, the insertion position after each layer, and the insertion position between every two adjacent layers. If the type of the second file is a video, the division method of video matching can be divided according to video frame images, and the file content of the second file can be divided according to video frame images to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate position item is a video frame image of the video. At this time, the candidate insertion positions include the insertion position before each video frame image, the insertion position after each video frame image, and the insertion position between every two adjacent video frame images. The type of the second file is audio, and the audio matching division method can be divided according to the dialogue sentences. Then, the file content of the second file can be divided according to the dialogue sentences to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate position item is a round of dialogue in the audio. At this time, the candidate insertion positions include the insertion position before each round of dialogue, the insertion position after each round of dialogue, and the insertion position between two adjacent rounds of dialogue.
[0270] In some embodiments, when there are multiple division methods for the file content of the second file, the file content of the second file is divided according to the priorities corresponding to the multiple division methods, and at least one candidate position item corresponding to the second file is obtained. Exemplarily, the file content of the second file is divided according to the division method from high to low priority, and at least one candidate position item corresponding to the second file is obtained.
[0271] For example: the type of the second file is a document, and the division method of document matching includes division according to paragraphs, or division according to sentences. Among them, the priority of division according to paragraphs is greater than the priority of division according to sentences. When the file content of the second file is divided, the file content of the second file is divided according to the high-priority division method to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate position item is a paragraph in the document. At this time, the candidate insertion positions include the insertion position before each paragraph, the insertion position after each paragraph, and the insertion position between every two adjacent paragraphs. After the high-priority division method cannot be used or the first division has been performed according to the high-priority division method, the file content of the second file is divided according to the low-priority division method to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate content item is a sentence in the document. At this time, the candidate insertion positions include the insertion position before each sentence, the insertion position after each sentence, and the insertion position between every two adjacent sentences.
[0272] In some embodiments, when there are multiple division methods for the file content of the second file, the file content of the second file is divided according to the levels corresponding to the multiple division methods to obtain at least one candidate content item corresponding to the second file.
[0273] Exemplarily, if the file content of the second file is currently divided into the first division, the file content of the second file is divided according to the first level division method among the multiple division methods to obtain at least one candidate position item corresponding to the second file. If the file content of the second file is currently divided into the second division, the file content of the second file is divided according to the second level division method among the multiple division methods to obtain at least one candidate position item corresponding to the second file.
[0274] For example: the type of the second file is a document, and the division method of document matching includes division by paragraphs, or division by sentences. Among them, division by paragraphs is the first-level division method, and division by sentences is the second-level division method. When the file content of the second file is currently divided into the first division, the file content of the second file is divided according to the first-level division method to obtain at least one candidate position item corresponding to the second file, and the file content corresponding to each candidate content item is a paragraph in the document. When the file content of the second file is currently divided into the second division, or the second division is performed on the candidate position items that have been divided, the file content of the second file is divided according to the second-level division method to obtain at least one candidate content item corresponding to the second file, and the file content corresponding to each candidate content item is a sentence in the document. Among them, the candidate position items further divided by the second-level division method are also called the next-level candidate position items. For example: a sentence is a next-level candidate position item of a paragraph.
[0275] In some embodiments, taking the type of the second file as a document, specifically a word document as an example, the file content of the second file is divided into multiple paragraphs using indents, such as: at least one of paragraph first line indent, hanging indent, left indent and right indent. The computer device detects the indent corresponding to the file content in the second file, divides the file content of the second file based on adjacent indents, and determines at least one candidate position item corresponding to the second file. Among them, the computer device uses the file content between every two adjacent indents as a candidate position item. Or, the file content of the second file is divided into multiple candidate position items by a first character, and the first character includes at least one of a section break, a page break and a carriage return. The computer device detects the first character corresponding to the file content in the second file, divides the file content of the second file based on adjacent first characters, and determines at least one candidate position item corresponding to the second file. Among them, the computer device uses the file content between every two adjacent second characters as a candidate position item.
[0276] Furthermore, for a candidate position item, a second character can be used to divide it into multiple sentences, and the second character includes at least one of a period, a semicolon, a colon, and a quotation mark. When further dividing the candidate position items, the computer device detects the second character of the first candidate position item in at least one candidate position item, divides the file content of the first candidate position item based on the adjacent second characters, and obtains at least one next-level candidate position item corresponding to the first candidate position item. The computer device regards the file content between every two adjacent second characters as a next-level candidate position item.
[0277] In some embodiments, taking the type of the second file as a document, specifically a ppt document, as an example, the file content of the second file is divided into multiple slides using different slide page numbers. The computer device detects the slide page number corresponding to the file content in the second file, divides the file content of the second file based on the slide page number, and determines at least one candidate position item corresponding to the second file. Among them, the computer device regards the file content corresponding to each page of the slide as a candidate position item. The division method of the file content in a candidate position item can be the same as the above embodiment.
[0278] Optionally, when the ppt document does not include slide page numbers, a content recognition model is also installed and executed in the computer device, and the content recognition model is used to perform content recognition on the file content included in each slide. The computer device recognizes the file content included in each slide of the second file through the content recognition model, divides the file content based on the semantics of the file content, and determines at least one candidate position item corresponding to the second file.
[0279] In some embodiments, taking the type of the second file as a document, specifically an Excel document, as an example, the file content of the second file is divided into multiple tables using different sheets. The computer device detects the number of sheets in the second file, divides the file content of the second file based on the number of sheets, and determines at least one candidate position item corresponding to the second file. Among them, the computer device uses the file content corresponding to each sheet as a candidate position item. The computer device can determine the number of sheets through a first quantity statistical function, and the first quantity statistical function can be a SHEET function, expressed as "=sheets()", which is used to return the number of sheets in the Excel document.
[0280] Furthermore, for a candidate position item, a row can be used to divide it into multiple rows, or a column can be used to divide it into multiple columns. When further dividing the first candidate position item, the computer device detects the number of rows or columns (or row labels and column labels) of the first candidate position item in at least one candidate position item, and divides the file content of the first candidate position item based on the number of rows or columns (or row labels and column labels) to obtain at least one next-level candidate position item corresponding to the first candidate position item. The computer device regards the file content of each row or column as a next-level candidate position item.
[0281] Further, taking the case where the next-level candidate position item is a row (or a column) of the first candidate position item as an example, when further dividing a row (or a column), the computer device detects the number of cells in each row (or each column), divides the file content of each row (or each column) based on the number of cells, and obtains at least one next-next-level candidate position item corresponding to the next-level candidate position item. The computer device can determine the number of cells in each row (or each column) by a second quantity counting function, and the second quantity counting function includes a COUNTA function, expressed as "=COUNTA()", which is used to return the number of non-empty cells in the sheet table.
[0282] Exemplarily, in response to a first interactive operation on a second file, a computer device displays at least one candidate position item corresponding to the second file, wherein the at least one candidate position item is obtained by dividing the file content in the second file, and the at least one candidate position item is used to provide at least two candidate insertion positions.
[0283] In some embodiments, the at least one candidate location item is at least two candidate location items, and the computer device displays the at least two candidate location items corresponding to the second file in order based on the order of the file contents corresponding to the at least two candidate location items in the second file.
[0284] In some embodiments, the computer device displays at least one of the following information for each candidate location item in the at least two candidate location items:
[0285] A sequence number, used to indicate the position of the file content corresponding to the candidate position item in the second file;
[0286] The header content of the file content corresponding to the candidate position item;
[0287] The tail content of the file content corresponding to the candidate position item;
[0288] Summary information of the file content corresponding to the candidate location item.
[0289] In some embodiments, at least one candidate location item corresponding to the second file is displayed in the peripheral area of the second file, and specifically can be displayed in the edge area of the first edge of the second list item corresponding to the second file. The first edge is the upper edge or the lower edge of the first list item. That is, the display method of at least one candidate location item corresponding to the second file can refer to the display method of at least one candidate content item corresponding to the first file, and will not be repeated here.
[0290] Step 324: In response to a second interaction operation of moving the target content item to a first insertion position among the at least two candidate insertion positions, determine the first insertion position as a target insertion position in the second file.
[0291] The first insertion position is an insertion position selected by the user.
[0292] The second interactive operation refers to an operation in which the user selects a first insertion position from at least two candidate insertion positions.
[0293] The second interaction operation includes moving the target content item to a first insertion position of at least two candidate insertion positions.
[0294] Exemplarily, in response to a second interaction operation of moving the target content item to a first insertion position among at least two candidate insertion positions, the computer device determines the first insertion position as the target insertion position in the second file.
[0295] Method 3
[0296] Step 330: In response to the interactive operation on the second file, determine the candidate insertion position in the second file that has the highest matching degree with the file content corresponding to the target content item as the target insertion position in the second file.
[0297] The matching degree refers to the matching degree between the file content in the second file and the file content corresponding to the target content item.
[0298] Optionally, the matching degree is calculated based on the context content of the candidate insertion position in the second file and the file content corresponding to the target content item.
[0299] Exemplarily, in response to the interactive operation on the second file, the computer device determines a candidate insertion position in the second file having the highest matching degree with the file content corresponding to the target content item as the target insertion position in the second file.
[0300] In some embodiments, the computer device is installed and runs a first neural network model; the first neural network model includes a natural language processing (NLP) model. Step 330 specifically includes steps 332, 334, and 336:
[0301] Step 332, in response to moving the target content item to the display area of the second file, using the first neural network model, converting the file content corresponding to the target content item into a first vector, and converting the context content corresponding to at least two candidate insertion positions in the second file into second vectors respectively.
[0302] The interactive operation on the second file includes moving the target content item to the display area where the second file is located.
[0303] The first vector refers to a vector converted based on the file content corresponding to the target content item.
[0304] The second vector refers to a vector converted based on the context content of the candidate insertion position in the second file.
[0305] In some embodiments, when the first file and the second file are both documents, the first vector is a first word vector, and the second vector is a second word vector. When the first file is an image, the first vector is a first image vector, which can be at least one of a color feature vector, a texture feature vector, a shape feature vector, and a spatial relationship feature vector.
[0306] Exemplarily, in response to moving the target content item to the display area of the second file, the computer device uses the first neural network model to convert the file content corresponding to the target content item into a first vector, and converts the context content corresponding to at least two candidate insertion positions in the second file into second vectors respectively. The conversion of the first vector and the second vector can be performed sequentially or synchronously, which is not limited in this embodiment.
[0307] As an example, taking the first file and the second file as documents, the first neural network model first preprocesses the file content corresponding to the target content item and the file content of the second file respectively to obtain the preprocessed target content item and the preprocessed second file. The preprocessing includes at least one of removing punctuation marks, converting to lowercase, and word segmentation. Then, the first neural network model converts the preprocessed target content item into a first word vector, and converts the context content corresponding to at least two candidate insertion positions in the preprocessed second file into a second word vector.
[0308] For example, the first neural network model is the FastText model. The FastText model is used to convert the content into word vectors. The FastText model represents each word as a set of character-level n-grams. For Chinese, character-level n-grams are usually in units of characters. For example, for the word "a mobile phone", if we choose an n-gram length of 2, then its subword set is {"a", "a hand", "a mobile phone"}. At the same time, in order to distinguish subwords from actual words, FastText adds special characters at the beginning and end of the word, such as "". The FastText model uses the continuous bag of words model (CBOW) or the skip window model (Skip-gram) to learn word vectors. In the CBOW model, the FastText model attempts to predict the current word based on the word vector of the context word. In the Skip-gram model, the FastText model attempts to predict the context word based on the word vector of the current word. The word vector of the FastText model is the average of all its subword vectors. This means that even if a word that has not appeared in the training set is encountered during the test phase, the FastText model can generate the word vector of this word through its subword vectors.
[0309] Step 334 , calculating the similarity between the second vector corresponding to each candidate insertion position and the first vector as the matching degree between the context content corresponding to each candidate insertion position and the file content corresponding to the target content item.
[0310] The similarity refers to the similarity between the second vector corresponding to each candidate insertion position and the first vector.
[0311] In some embodiments, when the first file and the second file are both documents, the similarity includes semantic similarity.
[0312] In this embodiment, similarity is used as the aforementioned matching degree. Matching degree is positively correlated with similarity, and the higher the similarity, the higher the corresponding matching degree. Similarity can also correspond to the matching degree value one by one. In some embodiments, the first word vector and the second word vector can also be scored for matching degree through the first neural network model to obtain a matching degree value.
[0313] Exemplarily, the computer device calculates the similarity between the second vector corresponding to each candidate insertion position and the first vector as the matching degree between the context content corresponding to each candidate insertion position and the file content corresponding to the target content item.
[0314] Step 336: determine the candidate insertion position with the highest matching degree as the target insertion position in the second file.
[0315] Exemplarily, the computer device determines the candidate insertion position with the highest matching degree as the target insertion position in the second file.
[0316] In the above embodiment, a plurality of methods for determining the target insertion position in the second file are provided, and in actual application, they can be selected according to actual needs, thereby improving the flexibility of human-computer interaction operations.
[0317] In order to more clearly understand the various display modes and operation modes of the embodiments of the present application, the following is a detailed description in conjunction with the schematic diagram. Among them, the type of file is a document, the display mode of the file is a file list, the first file corresponds to the first list item in the file list, and the second file corresponds to the second list item in the file list. Or, the display mode of the file is a file icon, the first file corresponds to the first file icon, and the second file corresponds to the second file icon. The first file and the second file are both word documents, and the first file and the second file are both divided according to paragraphs, and further, divided according to sentences. In other embodiments, the first file and the second file are both excel documents, and the first file and the second file are both divided according to tables, and further, divided according to rows.
[0318] In the following embodiments, the first file and the second file are each corresponding to at least two candidate content items. It should be noted that, when the first file and the second file are both documents (at least one of a txt document, a word document, a pdf document, an excel document, and a ppt document), the first file can also be replaced by a first electronic document or a first document, and the second file can also be replaced by a second electronic document or a second document.
[0319] Split screen drag file object
[0320] Fig. 9 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0321] like Fig. 9 As shown in the schematic diagram (1) in FIG. 1 , a first file B181 (or referred to as a first document B181 or a first electronic document B181) is selected in the file list 18, and a long press on the first file B181 is used to invoke a quick operation of pasting the file content, such as Fig. 9As shown in the schematic diagram (2) in the figure, at least two candidate content items 19 are displayed, wherein each of the at least two candidate content items 19 is displayed as a unit module at the upper edge of the first file B181, each candidate content item corresponds to a paragraph, and each candidate content item will display a serial number and the first few words of the paragraph, the first few words of the paragraph are used to assist the user to identify the content in the paragraph, and the serial number is used to assist the user to identify the position of the paragraph in the first file B181. Then, since the list distance between the first file B181 and the second file C182 (or referred to as the second document C182, the second electronic document C182) exceeds one screen, the user can also move / drag / drop the first file B181, such as Fig. 9 As shown in the schematic diagram (3) in FIG. 1 , the first file B181 is fixedly displayed in the fixed display area 20 for easy operation. The user can also cancel the move by clicking the cancel button, so that the first file B181 is still placed in the original position in the file list 18. It should be noted that the above move operation will not affect the original position order of each document in the file list 18.
[0322] Fig.10 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0323] Users can also swipe left or right to view more or fewer paragraphs, and cancel the paste shortcut operation by clicking the cancel button. Fig.10 As shown in the schematic diagram (1) in FIG. 1 , at least two candidate content items 21 - 1 of the first file B181 are currently displayed, including the paragraph numbers of the first to fourth paragraphs and the first few words of the paragraphs. Then, the user slides to the left to view more paragraphs, such as Fig.10 As shown in the schematic diagram (2) in FIG. 1 , after sliding, at least two candidate content items 21-2 of the first file B181 are displayed, including the paragraph numbers of the third to sixth paragraphs and the first few words of the paragraphs. Among them, the candidate content items corresponding to the first and second paragraphs are cancelled, and the candidate content items corresponding to the fifth and sixth paragraphs are newly displayed.
[0324] Fig.11 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0325] When the file is displayed as a file icon, the user can also slide up and down to view more or fewer paragraphs, and cancel the paste shortcut operation by clicking the cancel button. Fig.11 As shown in the schematic diagram (1) in FIG. 1 , at least two candidate content items 22-1 of the first file B181 are currently displayed, including the paragraph numbers of the first to fourth paragraphs and the first few words of the paragraphs. Then, the user slides upward to view more paragraphs, such as Fig.11As shown in the schematic diagram (2) in FIG. 1 , after sliding, at least two candidate content items 22-2 of the first file B181 are displayed, including the paragraph numbers of the third to sixth paragraphs and the first few words of the paragraphs. Among them, the candidate content items corresponding to the first and second paragraphs are cancelled, and the candidate content items corresponding to the fifth and sixth paragraphs are newly displayed.
[0326] · Copy paragraphs from different files
[0327] Fig.12 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0328] After the first file B181 is fixedly displayed in the fixed display area 20, the next step is to paste the file content of the first file B181 into the second file C182. Fig.12 As shown in the schematic diagram (1) in FIG. 1 , long pressing the second file C182 invokes a quick operation of pasting the file content, such as Fig.12 As shown in the schematic diagram (2) in the figure, at least two candidate position items 23 of the second file C182 are displayed. Each of the at least two candidate position items 23 is displayed as a unit module on the upper edge of the second file C182, and each candidate position item corresponds to a paragraph. Each candidate position item will display a serial number and the first few words of the paragraph to assist the user in identifying the content in the paragraph and the position of the paragraph in the second file C182. The at least two candidate position items 23 can provide 5 candidate insertion positions, including: insertion position 1 before the first paragraph, insertion position 2 between the first and second paragraphs, insertion position 3 between the second and third paragraphs, insertion position 4 between the third and fourth paragraphs, and insertion position 5 after the fourth paragraph. At this point, the first file B181 and the second file C182 are both in a state of fragmented paragraphs. The user selects the target content item 191 through a selection operation, and the target content item 191 is displayed as a dotted selected state, as shown in FIG. Fig.12 As shown in the schematic diagram (3), the user moves the target content item 191 to the insertion position 3, that is, the target insertion position 231 between the second paragraph and the third paragraph of the second file C182. Then, the computer device pastes the file content corresponding to the target content item 191 to the target insertion position to achieve the pasting of the file content.
[0329] Fig.13 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0330] This embodiment also supports pasting the file content of the first file into multiple second files. Specifically, the file content of the first file can be pasted into multiple second files in the same way as pasting the file content of the first file into the second file. Fig.13As shown in the schematic diagram (1) in FIG. 1 , the second file includes document C182 and document A183. Fig.12 The same operation, such as Fig.13 As shown in the schematic diagram (2) in FIG. 1 , the target content item 191 of the first file B 181 is moved between the second segment and the third segment of the second file C 182. Fig.13 As shown in the schematic diagram (1) in FIG. 1 , for the second file A183, at least two candidate position items of the second file A183 are also called out through a long press operation. Fig.13 As shown in the schematic diagram (3) in FIG. 1 , the target content item 191 of the first file B 181 is moved between the second section and the third section of the second file A 183 . In this way, the file contents between multiple files are pasted.
[0331] Fig.14 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0332] This embodiment also supports selecting multiple target content items of the first file, and pasting the file contents corresponding to the multiple target content items into the second file. Fig.14 As shown in the schematic diagram (1) in FIG. 1 , the user selects the target content item 191 and the target content item 192 by clicking on the candidate content items of the first file B181 in sequence, and the target content item 191 and the target content item 192 are both displayed as a dotted selected state. Fig.14 As shown in the schematic diagram (2) in FIG. 1 , the user can simultaneously move the target content item 191 and the target content item 192 to the second file C182 through one move operation, thereby pasting the file contents corresponding to the multiple target content items.
[0333] Copy sentences from different files
[0334] Fig.15 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0335] When implementing sentence replication, it is necessary to divide at least two candidate content items according to paragraphs, and then divide the candidate content items into a second level according to sentences. Fig.15 As shown in the schematic diagram (1) in FIG. 1 , long pressing the first file B181 invokes a quick operation of pasting the file content, such as Fig.15 As shown in the schematic diagram (2) in FIG. 1 , a first candidate content item 191 is selected from at least two candidate content items in the first file B181, wherein the first candidate content item 191 corresponds to the third segment in the first file B181. Fig.15 As shown in the schematic diagram (3) in FIG. 1 , long press the first candidate content item 191 to divide the third paragraph corresponding to the first candidate content item 191 into sentences, such as Fig.15As shown in the schematic diagram (4) in FIG. 1 , at least two next-level candidate content items 24 corresponding to the first candidate content item 191 are displayed, and each of the at least two next-level candidate content items 24 corresponds to a sentence in the third paragraph corresponding to the first candidate content item 191. Each next-level candidate content item is displayed with a serial number and the first few characters of the sentence, the first few characters of the sentence are used to assist the user in identifying the content of the sentence, and the serial number is used to assist the user in identifying the position of the sentence in the first candidate content item 191. Further, the user can paste the sentence by selecting a next-level target candidate content item from the at least two next-level candidate content items and moving it to the target insertion position in the second file.
[0336] Fig.16 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0337] In addition to achieving secondary division by long pressing the first candidate content item, secondary division can also be achieved by superimposing interactions. Fig.16 As shown in the schematic diagram (1) in FIG. 1 , the user selects the first candidate content item 191 from at least two candidate content items in the first file B 181 and moves the first candidate content item 191 to the display position of the first candidate position item 251 in the second file C 182, so that the first candidate content item 191 is superimposed on the first candidate position item 251, as shown in FIG. Fig.16 As shown in the schematic diagram (2) in FIG. , the sentence segmentation of the third paragraph corresponding to the first candidate position item 251 can be triggered at this time. Fig.16 As shown in the schematic diagram (3), at least two next-level candidate position items 26 corresponding to the first candidate position item 251 are displayed, and each of the at least two next-level candidate position items 26 corresponds to a sentence in the third paragraph corresponding to the first candidate position item 251.
[0338] Fig.17 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0339] The above operation can also be repeated when both the first file and the second file are Excel documents. Fig.17As shown in the schematic diagram (1) in FIG, the user divides the first file X271 according to the table sheet by long pressing operation, and obtains at least two candidate content items, each candidate content item corresponds to a table sheet in the first file X271; the user divides the second file A272 according to the table sheet by long pressing operation, and obtains at least two candidate position items, each candidate position item corresponds to a table sheet in the second file A272. The user selects the first candidate content item 281 by selecting operation, and moves the first candidate content item 281 to the display area of the first candidate position item 291, so that the first candidate content item 281 is superimposed on the first candidate position item 291, as shown in FIG. Fig.17 As shown in the schematic diagram (2) in FIG. 1 , the table sheet3 corresponding to the first candidate position item 291 can be triggered to be divided into rows. Fig.17 As shown in the schematic diagram (3), at least two next-level candidate position items 30 corresponding to the first candidate position item 291 are displayed, and each of the at least two next-level candidate position items 30 corresponds to a row in the table sheet3 corresponding to the first candidate position item 291.
[0340] Intelligent matching
[0341] Fig.18 A schematic diagram showing a method for pasting file contents provided by an exemplary embodiment of the present application is shown.
[0342] In order to cover more application scenarios, this embodiment also supports intelligent matching and pasting. The computer device is installed and running a natural language processing model. When the user moves the target content item to the display area of the second file, the computer device can intelligently determine the target insertion position with the highest matching degree for the target content item. Fig.18 As shown in the schematic diagram (1) in FIG. 1 , the user selects the target content item 191 from the at least two candidate content items corresponding to the first file B181 through a selection operation; at this time, the second file C182 displays at least two candidate position items 31, and the at least two candidate position items 31 are determined by dividing the file content of the second file C182 according to sentences, and the at least two candidate position items 31 can provide at least two candidate insertion positions. Fig.18 As shown in the schematic diagram (2) in FIG. 1 , the user moves the target content item 191 to the display area of the second file C182 through a moving operation, and the computer device determines the matching degree between the context content corresponding to each candidate insertion position and the file content corresponding to the target content item 191 through a natural language processing model. Fig.18As shown in the schematic diagram (3) in the figure, the computer device selects the candidate insertion position corresponding to the highest matching degree as the target insertion position, that is, the position between the second sentence and the third sentence in the second file C182 is the target insertion position, and pastes the file content corresponding to the target content item 191 into the target insertion position to realize intelligent matching and pasting of the file content.
[0343] To sum up, the method provided in the embodiment of the present application provides a convenient way to operate files. Without opening the file, the file content of the first file can be pasted to the target insertion position of the second file, thereby pasting the file content of the first file into the second file, simplifying the operation process and improving the efficiency of human-computer interaction.
[0344] Next, taking the operation on a folder as an example, the method of pasting file contents is generally explained.
[0345] Fig.19 A flowchart of a method for pasting file contents provided by an exemplary embodiment of the present application is shown, and the method is applied to a computer device for example. The computer device may be Figure 1 The terminal 120 shown. The method includes steps 410, 420, 430 and 440:
[0346] Step 410: display at least two unopened folders, where the at least two folders include a first folder and a second folder.
[0347] The first folder is a folder for providing files to be pasted.
[0348] The second folder is a folder for pasting the file to be pasted.
[0349] Optionally, the first folder and the second folder may be at least one of an online folder or a local folder. In some embodiments, the first folder and the second folder are both online folders; or, the first folder and the second folder are both local folders; or, the first folder is a local folder and the second folder is an online folder; or, the first folder is an online folder and the second folder is a local folder. This embodiment does not limit this.
[0350] Optionally, the first folder and the second folder each include at least one file. The type of the file may include at least one of a document, an image, a video, a code, and an audio. Furthermore, each type of the file may also include a subtype. Exemplarily, the document may also include at least one of a txt document, a word document, a pdf document, an excel document, a ppt document, and a collection table. The image may also include at least one of a jpg image, a gif image, and a bmp image.
[0351] Optionally, the types and / or subtypes of the files respectively contained in the first folder and the second folder may be the same or different. Exemplarily, the first folder and the second folder both contain documents, wherein the first folder and the second folder both contain word documents; or, the first folder and the second folder both contain documents, wherein the first folder contains word documents and the second folder contains pdf documents; or, the first folder contains videos and the second folder contains documents; or, the first folder contains images and the second folder contains documents. This embodiment is not limited to this.
[0352] Optionally, in the first folder and the second folder, the display mode of the files includes a file list or a file icon. The display modes of the files in the first folder and the second folder may be the same or different. Exemplarily, when the display mode of the files in the first folder is a file list, each file is displayed as a list item in the file list. When the display mode of the files in the first folder is a file icon, each file is displayed as a file icon.
[0353] In some embodiments, both the first folder and the second folder are in an unopened state. For example, the first folder may display at least one of the folder name, the last edited time, the editor, and the creator, but does not display which files are specifically included in the first folder.
[0354] Specifically, the computer device displays at least two unopened folders, and the at least two folders include a first folder and a second folder. Among them, the first folder may include at least one, the second folder may include at least one, and the first folder and the second folder may each contain at least one file. That is, this embodiment supports pasting at least one file in at least one first folder into at least one second folder. For example, the first folder includes two, namely, the first folder 1 and the first folder 2, and the second folder includes one, and the selected files of the first folder 1 and the selected files of the first folder 2 can be pasted into the second folder.
[0355] Step 420: In response to the interactive operation on the first folder, display at least one candidate file corresponding to the first folder, where the at least one candidate file is used to indicate a file in the first folder.
[0356] The interactive operation refers to an operation of calling up at least one candidate file of the first folder; or, the interactive operation refers to an operation of triggering the computer device to display at least one candidate file corresponding to the first folder.
[0357] Optionally, the interactive operation includes a click operation, a double-click operation or a long press operation. Long press means that the pressing duration is greater than or equal to a threshold from the moment of pressing. The threshold can be set according to actual technical needs, for example, set to 2 seconds (s).
[0358] In some embodiments, a selection operation may be included before the long press operation. The selection operation and the long press operation may be two independent operations. The selection operation may also be the first half of the long press operation. For example, a computer device displays multiple unopened folders, and the user selects the first folder through the selection operation. Then, the user may long press the first folder.
[0359] The candidate file is used to indicate the file in the first folder. Different candidate files are used to indicate different files.
[0360] Exemplarily, at least one candidate file corresponding to the first folder can refer to Figure 4 The candidate file 15 of the schematic diagram (2) in, or reference Figure 5 Candidate file 17 of schematic diagram (2) in FIG.
[0361] Exemplarily, in response to an interactive operation on a first folder, the computer device displays at least one candidate file corresponding to the first folder, where the at least one candidate file is used to indicate a file in the first folder.
[0362] Step 430 , in response to the selection operation of at least one candidate file, determining a target file, where the target file is the at least one selected candidate file.
[0363] The selection operation refers to the operation of selecting a target file from at least one candidate file.
[0364] The selection operation includes one of a click operation, a double-click operation, a touch operation, a long press operation, and a drag operation.
[0365] The target file is at least one candidate file selected from the at least one candidate file.
[0366] Optionally, the target file includes at least one. That is, this embodiment supports pasting at least one target file into the second folder each time. Exemplarily, the user can click on the target files in sequence to select multiple target files.
[0367] In some embodiments, after the user selects the target file through the selection operation, the computer device highlights the target file, or the computer device displays the target file in a selected state to indicate that the target file is selected. Optionally, the computer device also displays a deselect button, and the user can deselect the selected target file by clicking the deselect button.
[0368] Step 440 , in response to the interactive operation on the second folder, pasting the target file from the first folder to the second folder.
[0369] The interactive operation refers to an operation that triggers the computer device to paste the target file into the second file; or, the interactive operation refers to an operation that the user moves the target file to the display position where the second folder is located.
[0370] Exemplarily, the computer device pastes the target file from the first folder to the second folder in response to the interactive operation on the second folder. It should be noted that this embodiment can be applied to copy-paste, move-paste, or cut-paste.
[0371] Optionally, the computer device further displays a confirmation button. After the computer device pastes the target file from the first folder to the second folder, the user confirms that the pasting is completed by clicking the confirmation button.
[0372] In some embodiments, after pasting the file into the second folder, the computer device may automatically sort and display the files currently contained in the second folder according to at least one of name, creator, editor, and last edit time.
[0373] In summary, the method for pasting file contents provided in the embodiment of the present application can paste at least one file in the first folder into the second folder without opening any folder, thereby simplifying the operation process and improving the efficiency of human-computer interaction. Moreover, the above solution can also avoid being limited by the display screen size of the computer device, and there is no need to open and switch back and forth between multiple folders.
[0374] Next, how to display at least one candidate file corresponding to the first folder is described.
[0375] Fig. 20 A flowchart of a method for pasting file contents provided by an exemplary embodiment of the present application is shown. Step 420 performed by the computer device can be implemented as step 422:
[0376] Step 422: In response to the interactive operation on the first folder, display at least one candidate file corresponding to the first folder in the surrounding area of the first folder.
[0377] The peripheral area of the first folder includes a 360-degree edge area around the first folder.
[0378] Optionally, the interactive operation includes a click operation, a double-click operation, or a long press operation. Exemplarily, in response to the interactive operation on the first folder, the computer device displays at least one candidate file corresponding to the first folder in the peripheral area of the first folder. In some embodiments, in order not to affect the display of other folders, at least one candidate file does not cover other folders, or at least one candidate file only covers the edge area of other folders.
[0379] In this embodiment, by displaying at least one candidate file corresponding to the first folder in the surrounding area of the first folder, it is helpful for the user to know the first folder corresponding to the currently displayed candidate file, and secondly, it will not block the original first folder when displayed, which is beneficial to user operation and improves the efficiency of human-computer interaction.
[0380] The display mode of the folder includes one of a folder list or a folder icon. The following embodiments are described in different display modes of the folder. The display mode 1 of the folder list is specifically implemented as step 424, and the display mode 2 of the folder icon is specifically implemented as step 426:
[0381] Method 1
[0382] In some embodiments, at least two folders are displayed using a folder list. The first folder corresponds to a first folder list item in the folder list, and the second folder corresponds to a second folder list item in the folder list. Step 422 is specifically implemented as step 424:
[0383] Step 424, in response to an interactive operation on the first folder, display at least one candidate file corresponding to the first folder in an edge area of a first edge of a first folder list item corresponding to the first folder; wherein the first edge is an upper edge or a lower edge of the first folder list item.
[0384] The edge area refers to the display area where the edge of the first folder list item corresponding to a folder is located.
[0385] The first edge is the top edge or the bottom edge of the first folder listing item.
[0386] Optionally, at least one candidate file corresponding to the first folder is displayed in the same row. Exemplarily, in response to an interactive operation on the first folder, the computer device displays at least one candidate file corresponding to the first folder in an edge region of a first edge of a first folder list item corresponding to the first folder.
[0387] Method 2
[0388] In some embodiments, at least two folders are displayed using folder icons. The first folder corresponds to the first folder icon, and the second folder corresponds to the second folder icon. Step 422 is specifically implemented as step 426 ( Fig. 20 not shown):
[0389] Step 426, in response to the interactive operation on the first folder, display at least one candidate file corresponding to the first folder in the edge area of the first edge of the first folder icon corresponding to the first folder; wherein the first edge is the left edge or the right edge of the first folder list item.
[0390] The edge area refers to a display area where the edge of the first folder icon corresponding to the first folder is located.
[0391] The first edge is the left edge or the right edge of the first folder icon.
[0392] Optionally, at least one candidate file corresponding to the first folder is displayed in the same column. Exemplarily, in response to the interactive operation on the first folder, the computer device displays at least one candidate file corresponding to the first folder in an edge region of a first edge of a first folder icon corresponding to the first folder.
[0393] In the above embodiment, based on different display modes of folders, at least one candidate file corresponding to the first folder is displayed accordingly, thereby improving the flexibility of displaying the at least one candidate file corresponding to the first folder.
[0394] Optional display mode
[0395] In some embodiments, the at least one candidate file is at least two candidate files, and the computer device displays the at least two candidate files corresponding to the first folder in order based on the order of the at least two candidate files in the first folder.
[0396] In some embodiments, when the computer device displays at least two candidate files corresponding to the first folder, each of the at least two candidate files displays at least one of the following information:
[0397] A sequence number, used to indicate the position of the candidate file in the first folder;
[0398] The file name of the candidate file;
[0399] The header content of the file content in the candidate file;
[0400] The tail content of the file content in the candidate file;
[0401] Summary information about the file contents in the candidate file.
[0402] In this embodiment, the computer device displays the above information of the candidate files, which helps the user know what kind of file each candidate file is, and helps the user select the target file from the at least two candidate files corresponding to the first folder.
[0403] In some embodiments, at least one candidate file is at least two candidate files, and the computer device switches and displays the at least two candidate files as at least two updated candidate files in response to a switching operation on the at least two candidate files; wherein at least one candidate file is different from the at least two candidate files before the switching display.
[0404] The switching operation includes a sliding operation along a first direction; or, the switching operation includes a clicking operation or a touching operation on a switching button, and the switching button is used to switch the display of candidate files.
[0405] For example, if the first folder includes 4 files, the at least two candidate files corresponding to the first folder include candidate file 1, candidate file 2, candidate file 3 and candidate file 4, which are respectively used to indicate file 1, file 2, file 3 and file 4. The computer device currently displays candidate file 1 and candidate file 2, and then, in response to the switching operation of at least two candidate files, the computer device switches the currently displayed candidate file 1 and candidate file 2 to the updated candidate file 2 and candidate file 3, or switches the display to the updated candidate file 3 and candidate file 4.
[0406] Take the switching operation including a sliding operation along the first direction as an example. When at least two candidate files are displayed on the same row, the first direction includes the left-right direction. When at least two candidate files are displayed on the same column, the first direction includes the up-down direction. Specifically, in response to the sliding operation along the first direction on at least two candidate files, the computer device cancels the display of at least one candidate file located in the positive direction of the first direction, and newly displays at least one candidate file located in the reverse direction of the first direction.
[0407] For example, at least two candidate files corresponding to the first folder are displayed on the same line, and the at least two candidate files corresponding to the first folder include candidate file 1, candidate file 2, candidate file 3, and candidate file 4. The computer device currently displays candidate file 1 and candidate file 2. Then, in response to a sliding operation on at least two candidate files in the left direction, the computer device cancels the display of candidate file 1 and candidate file 2 located in the left direction, and newly displays candidate file 3 and candidate file 4 located in the opposite direction (right direction) of the left direction.
[0408] For example, at least two candidate files corresponding to the first folder are displayed in the same column, and the at least two candidate files corresponding to the first folder include candidate file 1, candidate file 2, candidate file 3, and candidate file 4. The computer device currently displays candidate file 1 and candidate file 2. Then, in response to the upward sliding operation on the at least two candidate files, the computer device cancels the display of candidate file 1 and candidate file 2 located in the upper direction, and newly displays candidate file 3 and candidate file 4 located in the opposite direction (lower direction) of the upper direction.
[0409] In this embodiment, the at least one candidate file is at least two candidate files, and the computer device can display more or fewer candidate files corresponding to the first folder, which is helpful for the user to select the target file from the at least two candidate files corresponding to the first folder.
[0410] Next, how to paste the files in the first folder into the second folder is described.
[0411] In some embodiments, step 440 performed by the computer device may be implemented as step 442:
[0412] Step 442, in response to moving the target file to the display area where the second folder is located, pasting the target file from the first folder to the second folder.
[0413] The interactive operation on the second file includes moving the target file to the display area where the second folder is located.
[0414] Exemplarily, in response to moving the target file to the display area where the second folder is located, the computer device pastes the target file from the first folder to the second folder.
[0415] In this embodiment, the computer device can paste the target file from the first folder to the second folder in response to moving the target file to the display area where the second folder is located, which is beneficial to improving the efficiency of human-computer interaction.
[0416] Fig.21 A block diagram of a file content pasting device 800 provided by an exemplary embodiment of the present application is shown. The file content pasting device 800 includes:
[0417] A display module 810, configured to display at least two unopened files, wherein the at least two files include a first file and a second file;
[0418] The display module 810 is configured to display at least one candidate content item corresponding to the first file in response to an interactive operation on the first file, where the at least one candidate content item is obtained by dividing the file content in the first file;
[0419] A processing module 820 is configured to determine a target content item in response to a selection operation on the at least one candidate content item, wherein the target content item is the selected at least one candidate content item;
[0420] The processing module 820 is used to determine a target insertion position in the second file in response to an interactive operation on the second file;
[0421] The pasting module 830 is used to paste the file content corresponding to the target content item from the first file to the target insertion position in the second file.
[0422] In some embodiments, the display module 810 is used to display the at least one candidate content item corresponding to the first file in a surrounding area of the first file in response to the interactive operation on the first file.
[0423] In some embodiments, the at least two files are displayed using a file list; the display module 810 is used to display the at least one candidate content item corresponding to the first file in an edge area of a first edge of a first list item corresponding to the first file in response to the interactive operation on the first file;
[0424] The first edge is an upper edge or a lower edge of the first list item.
[0425] In some embodiments, the processing module 820 is used to determine the default insertion position in the second file as the target insertion position in the second file in response to an interactive operation on the second file.
[0426] In some embodiments, the processing module 820 is used to determine a default insertion position in the second file as the target insertion position in the second file in response to moving the target content item to the display area where the second file is located.
[0427] In some embodiments, the processing module 820 is used to determine, in response to an interactive operation on the second file, an insertion position indicated by the interactive operation as the target insertion position in the second file.
[0428] In some embodiments, the processing module 820 is used to:
[0429] In response to a first interactive operation on the second file, displaying at least one candidate position item corresponding to the second file, the at least one candidate position item being obtained by dividing the file content in the second file, and the at least one candidate position item being used to provide at least two candidate insertion positions;
[0430] In response to a second interaction operation of moving the target content item to a first insertion position of the at least two candidate insertion positions, the first insertion position is determined as the target insertion position in the second file.
[0431] In some embodiments, the processing module 820 is used to determine, in response to an interactive operation on the second file, a candidate insertion position in the second file having the highest matching degree with the file content corresponding to the target content item as the target insertion position in the second file.
[0432] In some embodiments, the computer device is installed and runs a first neural network model;
[0433] In some embodiments, the processing module 820 is used to:
[0434] In response to moving the target content item to the display area of the second file, using the first neural network model, converting the file content corresponding to the target content item into a first vector, and converting the context content corresponding to at least two candidate insertion positions in the second file into second vectors respectively;
[0435] Calculating the similarity between the second vector corresponding to each candidate insertion position and the first vector as the matching degree between the context content corresponding to each candidate insertion position and the file content corresponding to the target content item;
[0436] The candidate insertion position with the highest matching degree is determined as the target insertion position in the second file.
[0437] In some embodiments, the at least one candidate content item is at least two candidate content items, and the display module 810 is used to display the at least two candidate content items corresponding to the first file in the order based on the order in which the file contents corresponding to the at least two candidate content items are respectively in the first file.
[0438] In some embodiments, each of the at least two candidate content items displays at least one of the following information:
[0439] A sequence number, used to indicate the position of the file content corresponding to the candidate content item in the first file;
[0440] The header content of the file content corresponding to the candidate content item;
[0441] The tail content of the file content corresponding to the candidate content item;
[0442] Summary information of the file content corresponding to the candidate content item.
[0443] In some embodiments, the at least one candidate content item is at least two candidate content items, and the display module 810 is used to switch and display the at least two candidate content items as updated at least two candidate content items in response to a switching operation on the at least two candidate content items;
[0444] Among them, at least one of the at least two updated candidate content items and the at least two candidate content items before the switching display is different.
[0445] In some embodiments, the switching operation includes a sliding operation along a first direction;
[0446] In some embodiments, the display module 810 is used to cancel the display of at least one candidate content item located in the positive direction of the first direction and newly display at least one candidate content item located in the opposite direction of the first direction in response to a sliding operation along the first direction on the at least two candidate content items.
[0447] In some embodiments, the display module 810 is configured to display at least one next-level candidate content item corresponding to a first candidate content item in the at least one candidate content item in response to a triggering operation on the first candidate content item;
[0448] The at least two next-level candidate content items are obtained by dividing the file content corresponding to the first candidate content item.
[0449] In some embodiments, the display module 810 is used to display the first file in a fixed display area in response to a move operation on the first file;
[0450] The fixed display area includes the top display area, the bottom display area, the display area where the dividing line is located, and the area specified by the moving operation.
[0451] In some embodiments, the first files include at least two; the display module 810 is used to, in response to the moving operation on the at least two first files, display at least one of the at least two first files in the fixed display area;
[0452] The at least one file includes at least one of the following:
[0453] at least one file selected by the move operation;
[0454] at least one file whose list distance from the second file exceeds a threshold;
[0455] At least one file that is most highly associated with the second file.
[0456] In some embodiments, the computer device is installed and runs a second neural network model;
[0457] In some embodiments, the display module 810 is used to:
[0458] In response to the interactive operation on the first file, using the second neural network model to preprocess the file content of the first file to obtain a preprocessed first file;
[0459] Based on the first regular expression, the file content of the preprocessed first file is divided to obtain at least one candidate content item corresponding to the first file.
[0460] In some embodiments, the display module 810 is used to respond to a trigger operation on a first candidate content item among the at least one candidate content item, and based on a second regular expression, divide the file content corresponding to the first candidate content item to obtain at least one next-level candidate content item corresponding to the first candidate content item.
[0461] It should be noted that the specific definition of the embodiment of the above-mentioned device 800 for pasting one or more file contents can refer to the definition of the method for pasting file contents in the above text, and will not be repeated here. Each module of the above-mentioned device can be implemented in whole or in part by software, hardware and a combination thereof, and each module can be embedded in the processor of the computer device in the form of hardware or independent of it, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operation of each module.
[0462] Fig. 22 A block diagram of a file content pasting device 900 provided by an exemplary embodiment of the present application is shown. The file content pasting device 900 includes:
[0463] A display module 910, configured to display at least two unopened folders, wherein the at least two folders include a first folder and a second folder;
[0464] The display module 910 is used to display at least one candidate file corresponding to the first folder in response to an interactive operation on the first folder, where the at least one candidate file is used to indicate a file in the first folder;
[0465] A processing module 920, configured to determine a target file in response to a selection operation on the at least one candidate file, wherein the target file is the at least one selected candidate file;
[0466] The pasting module 930 is configured to paste the target file from the first folder to the second folder in response to an interactive operation on the second folder.
[0467] In some embodiments, the display module 910 is used to display at least one candidate file corresponding to the first folder in a surrounding area of the first folder in response to the interactive operation on the first folder.
[0468] In some embodiments, the at least two folders are displayed using a folder list; the display module 910 is used to display the at least one candidate file corresponding to the first folder in an edge area of a first edge of a first folder list item corresponding to the first folder in response to the interactive operation on the first folder;
[0469] The first edge is an upper edge or a lower edge of the first folder list item.
[0470] In some embodiments, the pasting module 930 is used to paste the target file from the first folder to the second folder in response to moving the target file to the display area where the second folder is located.
[0471] It should be noted that the specific definition of the embodiment of the above-mentioned device 900 for pasting one or more file contents can refer to the definition of the method for pasting file contents in the above text, and will not be repeated here. Each module of the above-mentioned device can be implemented in whole or in part by software, hardware and a combination thereof, and each module can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operation of each module.
[0472] Fig.23 A structural block diagram of a computer device 1000 provided by an exemplary embodiment of the present application is shown.
[0473] The computer device 1000 may be a portable mobile terminal, which is also referred to as a mobile terminal in this embodiment. For example, a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), or an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1000 may also be referred to as a user device, a portable terminal, or other names.
[0474] Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .
[0475] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0476] The memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the method for pasting file content provided in the embodiment of the present application.
[0477] In some embodiments, the computer device 1000 may further include: a peripheral device interface 1003 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004 , a touch display screen 1005 , a camera 1006 , an audio circuit 1007 and a power supply 1008 .
[0478] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0479] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0480] The touch display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. The touch display screen 1005 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1005 may be one, and the front panel of the computer device 1000 is set; in other embodiments, the touch display screen 1005 may be at least two, which are respectively set on different surfaces of the computer device 1000 or are folded; in some embodiments, the touch display screen 1005 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1000. Even, the touch display screen 1005 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1005 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0481] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0482] The audio circuit 1007 is used to provide an audio interface between the user and the computer device 1000. The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0483] The power supply 1008 is used to power various components in the computer device 1000. The power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1008 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0484] In some embodiments, the computer device 1000 further includes one or more sensors 1009 , including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
[0485] The acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1000. For example, the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010. The acceleration sensor 1010 can also be used to collect motion data of games or users.
[0486] The gyro sensor 1011 can detect the body direction and rotation angle of the computer device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the computer device 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0487] The pressure sensor 1012 can be set on the side frame of the computer device 1000 and / or the lower layer of the touch display screen 1005. When the pressure sensor 1012 is set on the side frame of the computer device 1000, it can detect the user's grip signal of the computer device 1000, and perform left and right hand recognition or shortcut operation according to the grip signal. When the pressure sensor 1012 is set on the lower layer of the touch display screen 1005, it can control the operability control on the UI interface according to the user's pressure operation on the touch display screen 1005. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0488] The optical sensor 1013 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.
[0489] The proximity sensor 1014, also called a distance sensor, is usually arranged on the front of the computer device 1000. The proximity sensor 1014 is used to collect the distance between the user and the front of the computer device 1000. In one embodiment, when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually decreasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.
[0490] Those skilled in the art will understand that Fig.23 The structure shown in the figure does not constitute a limitation on the computer device 1000, and the computer device 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.
[0491] In an exemplary embodiment, the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip is run on a computer device, it is used to implement the file content pasting method provided by the above method embodiment.
[0492] The present application provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement the file content pasting method provided by the above method embodiment.
[0493] The present application provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the processor of the computer device loads and executes the method for pasting file contents provided in the above method embodiment.
[0494] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0495] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned computer-readable storage medium may be a read-only memory, a disk or an optical disk, etc.
[0496] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0497] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for pasting file content, characterized in that: The method is performed by a computer device, and the method comprises: Displaying at least two unopened files, the at least two files comprising a first file and a second file; In response to an interactive operation on the first file, displaying at least one candidate content item corresponding to the first file, where the at least one candidate content item is obtained by dividing file content in the first file; In response to a selection operation on the at least one candidate content item, determining a target content item, the target content item being the selected at least one candidate content item; In response to an interactive operation on the second file, determining a target insertion position in the second file; Paste the file content corresponding to the target content item from the first file to the target insertion position in the second file.
2. The method according to claim 1, characterized in that: The displaying, in response to the interactive operation on the first file, at least one candidate content item corresponding to the first file comprises: In response to the interactive operation on the first file, the at least one candidate content item corresponding to the first file is displayed in a peripheral area of the first file.
3. The method according to claim 2, characterized in that The at least two files are displayed using a file list; The step of displaying the at least one candidate content item corresponding to the first file in a peripheral area of the first file in response to the interactive operation on the first file includes: In response to the interactive operation on the first file, displaying the at least one candidate content item corresponding to the first file in an edge region of a first edge of a first list item corresponding to the first file; The first edge is an upper edge or a lower edge of the first list item.
4. The method according to any one of claims 1 to 3, characterized in that: In response to the interactive operation on the second file, determining a target insertion position in the second file includes: In response to the interactive operation on the second file, a default insertion position in the second file is determined as the target insertion position in the second file.
5. The method according to claim 4, characterized in that In response to the interactive operation on the second file, determining the default insertion position in the second file as the target insertion position in the second file includes: In response to moving the target content item to the display area where the second file is located, a default insertion position in the second file is determined as the target insertion position in the second file.
6. The method according to any one of claims 1 to 3, characterized in that: In response to the interactive operation on the second file, determining a target insertion position in the second file includes: In response to an interactive operation on the second file, the insertion position indicated by the interactive operation is determined as the target insertion position in the second file.
7. The method according to claim 6, characterized in that In response to the interactive operation on the second file, determining the insertion position indicated by the interactive operation as the target insertion position in the second file includes: In response to a first interactive operation on the second file, displaying at least one candidate position item corresponding to the second file, the at least one candidate position item being obtained by dividing the file content in the second file, and the at least one candidate position item being used to provide at least two candidate insertion positions; In response to a second interaction operation of moving the target content item to a first insertion position of the at least two candidate insertion positions, the first insertion position is determined as the target insertion position in the second file.
8. The method according to any one of claims 1 to 3, characterized in that: Determining a target insertion position in the second file in response to an interactive operation on the second file includes: in response to an interactive operation on the second file, determining a candidate insertion position in the second file whose file content corresponding to the target content item has the highest match degree as the target insertion position in the second file.
9. The method according to claim 8, characterized in that The computer device is installed and runs a first neural network model; In response to the interactive operation on the second file, determining a candidate insertion position in the second file having a file content corresponding to the target content item with a highest matching degree as the target insertion position in the second file includes: In response to moving the target content item to the display area of the second file, using the first neural network model, converting the file content corresponding to the target content item into a first vector, and converting the context content corresponding to at least two candidate insertion positions in the second file into second vectors respectively; Calculating the similarity between the second vector corresponding to each candidate insertion position and the first vector as the matching degree between the context content corresponding to each candidate insertion position and the file content corresponding to the target content item; The candidate insertion position with the highest matching degree is determined as the target insertion position in the second file.
10. The method according to any one of claims 1 to 3, characterized in that: The at least one candidate content item is at least two candidate content items, and the method further includes: Based on the order of the file contents corresponding to the at least two candidate content items in the first file, displaying the at least two candidate content items corresponding to the first file in the order; Each of the at least two candidate content items displays at least one of the following information: A sequence number, used to indicate the position of the file content corresponding to the candidate content item in the first file; The header content of the file content corresponding to the candidate content item; The tail content of the file content corresponding to the candidate content item; Summary information of the file content corresponding to the candidate content item.
11. The method according to any one of claims 1 to 3, characterized in that: The at least one candidate content item is at least two candidate content items, and the method further includes: In response to a switching operation on the at least two candidate content items, switching and displaying the at least two candidate content items as at least two updated candidate content items; Among them, at least one of the at least two updated candidate content items and the at least two candidate content items before the switching display is different.
12. The method according to claim 11, characterized in that The switching operation includes a sliding operation along a first direction; The step of switching and displaying the at least two candidate content items as updated at least two candidate content items in response to the switching operation on the at least two candidate content items includes: In response to a sliding operation on the at least two candidate content items along a first direction, at least one candidate content item located in a positive direction of the first direction is canceled from display, and at least one candidate content item located in a reverse direction of the first direction is newly displayed.
13. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to a triggering operation on a first candidate content item among the at least one candidate content item, displaying at least one next-level candidate content item corresponding to the first candidate content item; The at least one next-level candidate content item is obtained by dividing the file content corresponding to the first candidate content item.
14. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to a move operation on the first file, fixedly displaying the first file in a fixed display area; Wherein, the fixed display area is the top display area, the bottom display area, the display area where the dividing line is located, and the area specified by the moving operation; The first file includes at least two files; and in response to the moving operation on the first file, the first file is fixedly displayed in the fixed display area, comprising: In response to the moving operation on the at least two first files, fixedly displaying at least one of the at least two first files in the fixed display area; The at least one file includes at least one of the following: at least one file selected by the move operation; at least one file whose list distance from the second file exceeds a threshold; At least one file that is most highly associated with the second file.
15. The method according to any one of claims 1 to 3, characterized in that: The computer device is installed and runs a second neural network model; The displaying, in response to the interactive operation on the first file, at least one candidate content item corresponding to the first file comprises: In response to the interactive operation on the first file, using the second neural network model to preprocess the file content of the first file to obtain a preprocessed first file; Based on the first regular expression, the file content of the preprocessed first file is divided to obtain at least one candidate content item corresponding to the first file.
16. The method according to claim 15, characterized in that The method further comprises: In response to a triggering operation on a first candidate content item among the at least one candidate content item, the file content corresponding to the first candidate content item is divided based on a second regular expression to obtain at least one next-level candidate content item corresponding to the first candidate content item.
17. A method for pasting file content, characterized in that: The method is performed by a computer device, and the method comprises: Displaying at least two unopened folders, the at least two folders comprising a first folder and a second folder; In response to an interactive operation on the first folder, displaying at least one candidate file corresponding to the first folder, where the at least one candidate file is used to indicate a file in the first folder; In response to a selection operation on the at least one candidate file, determining a target file, the target file being the at least one selected candidate file; In response to an interactive operation on the second folder, the target file is pasted from the first folder to the second folder.
18. The method according to claim 17, characterized in that The step of displaying at least one candidate file corresponding to the first folder in response to the interactive operation on the first folder includes: In response to the interactive operation on the first folder, at least one candidate file corresponding to the first folder is displayed in a peripheral area of the first folder.
19. The method according to claim 18, characterized in that The at least two folders are displayed using a folder list; In response to the interactive operation on the first folder, displaying at least one candidate file corresponding to the first folder in a peripheral area of the first folder includes: In response to the interactive operation on the first folder, displaying the at least one candidate file corresponding to the first folder in an edge region of a first edge of a first folder list item corresponding to the first folder; The first edge is an upper edge or a lower edge of the first folder list item.
20. The method according to any one of claims 17 to 19, characterized in that: The step of pasting the target file from the first folder to the second folder in response to the interactive operation on the second folder comprises: In response to moving the target file to the display area where the second folder is located, pasting the target file from the first folder to the second folder.
21. A device for pasting file contents, characterized in that: The device comprises: A display module, used for displaying at least two unopened files, wherein the at least two files include a first file and a second file; The display module is configured to display at least one candidate content item corresponding to the first file in response to an interactive operation on the first file, where the at least one candidate content item is obtained by dividing the file content in the first file; a processing module, configured to determine a target content item in response to a selection operation on the at least one candidate content item, wherein the target content item is the selected at least one candidate content item; The processing module is used to determine a target insertion position in the second file in response to an interactive operation on the second file; The pasting module is used to paste the file content corresponding to the target content item from the first file to the target insertion position in the second file.
22. A device for pasting file contents, characterized in that: The device comprises: A display module, used for displaying at least two unopened folders, wherein the at least two folders include a first folder and a second folder; The display module is used to display at least one candidate file corresponding to the first folder in response to an interactive operation on the first folder, wherein the at least one candidate file is used to indicate a file in the first folder; A processing module, configured to determine a target file in response to a selection operation on the at least one candidate file, wherein the target file is the at least one selected candidate file; The pasting module is used for pasting the target file from the first folder to the second folder in response to an interactive operation on the second folder.
23. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the method for pasting file content as claimed in any one of claims 1 to 20.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for pasting file content as described in any one of claims 1 to 20.
25. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the method for pasting file content as described in any one of claims 1 to 20.