Method and system for performing separated browsing editing on editing tool

By acquiring text data in the editing tool and displaying it as an independent module, and dynamically adjusting the module position and size in combination with user instructions, the problem in the existing technology that editing tools are difficult to quickly separate and locate multi-line text files is solved, and flexible editing is achieved. Area separation and sorting improve user experience and programming convenience.

CN118689359APending Publication Date: 2024-09-24SHANGHAI BAOSIGHT SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310296848.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When existing editing tools process multi-line text files, it is difficult to quickly separate and browse and accurately locate different areas, and they are not suitable for split-screen programming code, which is inconvenient to operate and takes up space.

Method used

By obtaining the file text data, displaying it as an independent module, and dynamically changing the module position and size through user instructions, separated browsing and editing are realized. It supports separation instructions, frame selection instructions, drag and drop instructions and area adjustment instructions, allowing users to flexibly dismantle Divide and sort the editing area.

Benefits of technology

It realizes the quick separation of editing areas, reduces the occupation of display area, improves the intuitiveness and flexibility of operation, is suitable for programming languages, and enhances the user experience and operational convenience for programmers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689359A
    Figure CN118689359A
Patent Text Reader

Abstract

The invention provides a method and a system for performing separated browsing and editing on an editing tool. The method comprises the following steps: acquiring file text data; displaying the text data in an editor in an independent module manner; the position and size of the module are dynamically changed through the editor and user instructions, then separated browsing editing is carried out, and the instructions comprise a separation instruction, a frame selection instruction, a dragging instruction and an area adjusting instruction. Under the scene of multi-line text editing, separation of the editing area can be rapidly achieved, occupation of the display area is reduced as much as possible, and a user can conveniently browse and edit in an independent editing module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information technology, and in particular to a method and system for performing separated browsing and editing on an editing tool. Background Art

[0002] In daily work, we often encounter some text files with a large number of lines. Sometimes we need to switch between the contents of two or more different areas in the file multiple times. This may require using the scroll bar to switch back and forth, or opening several editors for split screen to solve the problem. However, these operations are sometimes not very convenient. Using the scroll bar to switch back and forth is time-consuming and labor-intensive, and the positioning is not accurate; using split screen to open multiple editors takes up a lot of space and has no accurate positioning.

[0003] Although the existing Microsoft Office Word software has a split module, manual sliding is required to reach the desired split position after splitting, and the software code cannot be split, and the separated areas cannot be sorted.

[0004] Therefore, there is a need in the market for a method and system that can quickly separate editing areas and minimize the occupation of display areas, and is suitable for separate browsing and editing of split programming codes. Summary of the invention

[0005] In view of the defects in the prior art, the object of the present invention is to provide a method and system for performing separated browsing and editing on an editing tool.

[0006] A method for performing separated browsing and editing on an editing tool provided by the present invention includes:

[0007] Step S1: Obtain file text data;

[0008] Step S2: displaying the text data in an editor in the form of an independent module;

[0009] Step S3: Dynamically change the position and size of the module through the editor and user instructions, and then perform separate browsing and editing, wherein the instructions include separation instructions, box selection instructions, dragging instructions and area adjustment instructions.

[0010] Preferably, a separation instruction is triggered by selecting an area in the middle of the number of lines, and the editing tool responds to the separation instruction to separate the current module from the middle of the number of lines selected into a plurality of editing areas;

[0011] or

[0012] A selection instruction is issued to select the area to be separated. The editing tool responds to the selection instruction and generates a top editing area based on the original module for the line content in the selection area, wherein the area to be separated includes at least 2 lines of content.

[0013] Preferably, by selecting a plurality of areas to be separated, corresponding top-pinning editing areas are generated, and the order of pinning the top-pinning editing areas is consistent with the order of box selection.

[0014] Preferably, the separated editing areas are independent of each other and have independent scroll bars;

[0015] The multiple editing areas pinned to the top can trigger a drag command by long pressing and selecting the editing area to be dragged, and the editing tools are reordered in response to the drag command.

[0016] Preferably, the editing tool responds to the area adjustment instruction issued by the user to reduce or enlarge the selected editing area.

[0017] A system for performing separated browsing and editing on an editing tool according to the present invention includes:

[0018] Module M1: Get file text data;

[0019] Module M2: Display the text data in the editor in the form of an independent module;

[0020] Module M3: Dynamically change the position and size of the module through the editor and user instructions, and then perform separate browsing and editing, wherein the instructions include separation instructions, box selection instructions, dragging instructions and area adjustment instructions.

[0021] Preferably, a separation instruction is triggered by selecting an area in the middle of the number of lines, and the editing tool responds to the separation instruction to separate the current module from the middle of the number of lines selected into a plurality of editing areas;

[0022] or

[0023] A selection instruction is issued to select the area to be separated. The editing tool responds to the selection instruction and generates a top editing area based on the original module for the line content in the selection area, wherein the area to be separated includes at least 2 lines of content.

[0024] Preferably, by selecting a plurality of areas to be separated, corresponding top-pinning editing areas are generated, and the order of pinning the top-pinning editing areas is consistent with the order of box selection.

[0025] Preferably, the separated editing areas are independent of each other and have independent scroll bars;

[0026] The multiple editing areas pinned to the top can trigger a drag command by long pressing and selecting the editing area to be dragged, and the editing tools are reordered in response to the drag command.

[0027] Preferably, the editing tool responds to the area adjustment instruction issued by the user to reduce or enlarge the selected editing area.

[0028] Compared with the prior art, the present invention has the following beneficial effects:

[0029] 1. In the scenario of multi-line text editing, the present invention can quickly separate the editing area and reduce the occupation of the display area as much as possible, making it convenient for users to browse and edit in independent editing modules.

[0030] 2. The present invention is triggered by selecting the middle area between two lines in the line number area, so the operation is more intuitive and the text position can be arbitrarily selected for splitting according to one's own ideas, which is humanized and improves the user experience.

[0031] 3. The present invention performs targeted position separation according to the number of lines when triggered, and the operation is simple, flexible and convenient. It can split the text file into multiple modules and can separate, adjust, edit and close each module separately. It is suitable for programming languages, more user-friendly for programmers, and has comprehensive applicability.

[0032] 4. The present invention separates the top area content by quickly selecting the number of rows, realizing the separated display of the selected number of rows. At the same time, the position order of the separated areas can be changed by dragging and sorting. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0034] Figure 1 It is a schematic diagram of the method flow of the present invention.

[0035] Figure 2 This is a schematic diagram of editing before separated browsing of the present invention.

[0036] Figure 3 This is a schematic diagram of editing after separated browsing of the present invention. DETAILED DESCRIPTION

[0037] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0038] The present invention splits a text file into multiple editing modules and can perform operations such as separation, area adjustment, editing, closing, dragging and sorting on each module respectively.

[0039] According to a method for performing separated browsing and editing on an editing tool provided by the present invention, Figure 1 As shown, including:

[0040] Step S1: Obtain file text data.

[0041] Step S2: Figure 2 As shown, the text data is displayed in the editor in the form of an independent module. Specifically, the line count of the corresponding file text data is displayed.

[0042] Step S3: Dynamically change the position and size of the module through the editor and user instructions, and then perform separate browsing and editing, wherein the instructions include separation instructions, box selection instructions, dragging instructions and area adjustment instructions.

[0043] Specifically, Figure 3 As shown, the separation instruction is triggered by selecting the area in the middle of the lines, and the editing tool responds to the separation instruction to separate the selected lines in the current module into multiple editing areas. Specifically, the separation operation can be performed by clicking the area in the middle of two lines, and multiple lines can be clicked to separate multiple editing areas. The present invention is triggered by clicking the area in the middle of two lines in the left line area, and the operation is more intuitive. The text position can be arbitrarily selected for splitting according to one's own ideas, which is more user-friendly. At the same time, targeted position separation is performed according to the number of lines at the time of triggering. For example, if the area in the middle of lines 120 and 121 is clicked, the separation is performed in lines 120 and 121. The operation is more flexible and convenient, and it is more user-friendly for programmers.

[0044] It also includes sending a selection instruction to select the area that needs to be separated, and the editing tool responds to the selection instruction to generate a top editing area based on the original module for the line content in the selection area, that is, the selection area is the top editing area, and the original module is not modified. Among them, the area that needs to be separated includes at least 2 lines of content. By selecting multiple areas that need to be separated, corresponding top editing areas are generated, and the top order of the top editing areas is consistent with the selection order. For example, the separation area selected for the first time is the first top editing area, the separation area selected for the second time is the second top editing area, and so on. At the same time, the multiple top editing areas can trigger the drag instruction by long pressing and selecting the editing area to be dragged, and the editing tool responds to the drag instruction to reorder. It should be noted that the drag sorting of the top editing area is independent of the drag sorting of the non-top editing area to prevent the occurrence of sorting confusion.

[0045] Specifically, the user enters the drag state of the current module by clicking and holding the mouse. At this time, moving the mouse will move the current module, and other modules will respond to the drag state module and enter the drag sorting state, pre-displaying the sorting status of the drag state module. Releasing the mouse click at this time will end the drag sorting operation.

[0046] In the present invention, the separated editing areas are independent of each other and have independent scroll bars.

[0047] In addition, the editing tool responds to the area adjustment instructions issued by the user and shrinks or enlarges the selected editing area. After the user long-presses the mouse to click on the module to be adjusted, the upper and lower modules enter the area adjustment state. Moving the current area adjustment module will change the size of the upper and lower modules in real time. Releasing the mouse click will end this area adjustment. It is worth noting that there is no area adjustment module between the top module and the non-top module. The area adjustment module between the non-top modules has a close button area, which monitors the user's click operation. After being clicked by the user, the upper and lower modules are restored, that is, the line content of the lower module is merged into the upper module, and the lower module is deleted. There is a close button area on the left side of the top module, which also monitors the user's click operation. After being clicked by the user, the current top module will be deleted.

[0048] Further, the present invention is specifically described as follows by way of example:

[0049] Suppose you need to separate lines 120 and 121 and then restore them. Open a text file with multiple lines. The editor format is as follows: Figure 2 As shown. Scroll the scroll bar until both lines 120 and 121 appear in the editing module. Click the area between lines 120 and 121 in the quick separation module to perform the separation operation. The upper editor displays the content of lines 1 to 120, and the lower editor displays the content from line 121 to the end. At this time, the editor format is as follows Figure 3 As shown, the upper and lower editing modules are independent of each other and do not affect each other. Drag the area up and down to adjust the module to achieve the size of the upper and lower editing modules. Cancel the box selection on the quick separation module to close the separation operation and restore it to the original state.

[0050] Suppose you need to separate and pin lines 120 to 130, and then restore them. Open a text file with multiple lines. The editor format is as follows: Figure 2 As shown. Scroll the scroll bar until lines 120 to 130 appear in the editing module. Select the area between lines 120 and 130 in the quick separation module to implement the separation top operation. The upper editor displays the content of lines 120 to 130, and the lower editor displays the content from 1 to the end (including lines 120-130). At this time, the editor format is as follows Figure 3As shown, the upper and lower editing modules are independent of each other and do not affect each other. The upper editor is pinned. Drag the area up and down to adjust the module to achieve the size of the upper and lower editing modules. Cancel the box selection on the quick separation module, close the separation operation, and restore to the original state.

[0051] Assume that the whole text has 1 to 300 lines, and you need to separate lines 30 to 40, 50 to 60, and 120 to 130 and put them on top, then drag and drop them to sort them, and finally restore them. Open a text file with multiple lines. The editor format is as follows Figure 2 As shown. Scroll the scroll bar until all 30 to 40 rows appear in the editing module. Select the area of ​​30 to 40 rows in the quick separation module to separate and place them at the top. Continue to separate 50 to 60 rows and 120 to 130 rows as described above. There are currently four editing modules from top to bottom on the interface: 30 to 40, 50 to 60, 120 to 130, and 1 to 300. Long press and drag the first editing module (30 to 40) to the bottom of the second editing module (50 to 60) to achieve drag and sort. There are currently four editing modules from top to bottom on the interface: 50 to 60, 30 to 40, 120 to 130, and 1 to 300. Long press and drag the third editing module (120 to 130) to the bottom of the fourth editing module (1 to 300) to achieve drag and place at the bottom. There are currently four editing modules from top to bottom on the interface: 50-60, 30-40, 1-300, 120-130. Cancel the box selection on the quick separation module, close all separation operations, and restore to the original state.

[0052] The present invention also provides a system for performing separated browsing and editing on an editing tool. A person skilled in the art can implement the system for performing separated browsing and editing on an editing tool by executing the step flow of the method for performing separated browsing and editing on an editing tool. That is, the method for performing separated browsing and editing on an editing tool can be understood as a preferred implementation of the system for performing separated browsing and editing on an editing tool.

[0053] A system for performing separated browsing and editing on an editing tool according to the present invention includes:

[0054] Module M1: Get file text data.

[0055] Module M2: Display the text data in the editor in the form of an independent module.

[0056] Module M3: Dynamically change the position and size of the module through the editor and user instructions, and then perform separated browsing and editing, wherein the instructions include separation instructions, box selection instructions, drag instructions and area adjustment instructions. Specifically, the separation instruction is triggered by selecting the area in the middle of the number of lines, and the editing tool responds to the separation instruction to separate the current module from the middle of the selected number of lines into multiple editing areas. Alternatively, a box selection instruction is issued to box the area to be separated, and the editing tool responds to the box selection instruction to generate a top editing area based on the original module for the line content in the box selection area, wherein the area to be separated includes at least 2 lines of content. By boxing multiple areas to be separated, corresponding top editing areas are generated, and the top order of the top editing areas is consistent with the box selection order. The separated editing areas are independent of each other and have independent scroll bars. The top multiple editing areas can trigger the drag instruction by long pressing and selecting the editing area to be dragged, and the editing tool responds to the drag instruction to reorder. The editing tool responds to the area adjustment instruction issued by the user to reduce or enlarge the selected editing area.

[0057] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0058] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A method for performing separated browsing and editing on an editing tool, characterized in that: include: Step S1: Obtain file text data; Step S2: displaying the text data in an editor in the form of an independent module; Step S3: Dynamically change the position and size of the module through the editor and user instructions, and then perform separate browsing and editing, wherein the instructions include separation instructions, box selection instructions, dragging instructions and area adjustment instructions.

2. The method for performing separated browsing and editing on an editing tool according to claim 1, characterized in that: A separation instruction is triggered by selecting an area in the middle of the number of lines, and the editing tool responds to the separation instruction to separate the current module from the middle of the number of lines selected into multiple editing areas; or A selection instruction is issued to select the area to be separated. The editing tool responds to the selection instruction and generates a top editing area based on the original module for the line content in the selection area, wherein the area to be separated includes at least 2 lines of content.

3. The method for performing separated browsing and editing on an editing tool according to claim 2, characterized in that: By selecting a plurality of areas to be separated, corresponding top-fixed editing areas are generated, and the order of fixing the top-fixed editing areas is consistent with the order of selecting the areas.

4. The method for performing separated browsing and editing on an editing tool according to any one of claims 1 to 3, characterized in that: The separated editing areas are independent of each other and have independent scroll bars; The multiple editing areas pinned to the top can trigger a drag command by long pressing and selecting the editing area to be dragged, and the editing tools are reordered in response to the drag command.

5. The method for performing separated browsing and editing on an editing tool according to claim 1, characterized in that: The editing tool responds to the area adjustment instruction issued by the user and reduces or enlarges the selected editing area.

6. A system for performing separated browsing and editing on an editing tool, characterized in that: include: Module M1: Get file text data; Module M2: Display the text data in the editor in the form of an independent module; Module M3: Dynamically change the position and size of the module through the editor and user instructions, and then perform separate browsing and editing, wherein the instructions include separation instructions, box selection instructions, dragging instructions and area adjustment instructions.

7. The system for performing separated browsing and editing on an editing tool according to claim 6, characterized in that: A separation instruction is triggered by selecting an area in the middle of the number of lines, and the editing tool responds to the separation instruction to separate the current module from the middle of the number of lines selected into multiple editing areas; or A selection instruction is issued to select the area to be separated. The editing tool responds to the selection instruction and generates a top editing area based on the original module for the line content in the selection area, wherein the area to be separated includes at least 2 lines of content.

8. The system for performing separated browsing and editing on an editing tool according to claim 7, characterized in that: By selecting a plurality of areas to be separated, corresponding top-fixed editing areas are generated, and the order of fixing the top-fixed editing areas is consistent with the order of selecting the areas.

9. The system for performing separated browsing and editing on an editing tool according to any one of claims 6 to 8, characterized in that: The separated editing areas are independent of each other and have independent scroll bars; The multiple editing areas pinned to the top can trigger a drag command by long pressing and selecting the editing area to be dragged, and the editing tools are reordered in response to the drag command.

10. The system for performing separated browsing and editing on an editing tool according to claim 6, characterized in that: The editing tool responds to the area adjustment instruction issued by the user and reduces or enlarges the selected editing area.