A folder switching method, device, computing device and storage medium

By receiving mouse wheel input events and shortcut keys, combined with the linked list structure to record folder history, rapid switching between folders is achieved, which solves the problem of inconvenient folder switching operations in the file manager and improves work efficiency and user experience.

CN114690993BActive Publication Date: 2024-09-06UNIONTECH SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210272999.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-09-06
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In the file manager, when users frequently switch folders, they need to click the back or forward button with the mouse or use shortcut keys. The operation is not convenient enough and affects work efficiency and user experience.

Method used

By receiving the mouse wheel input event, a folder switching request is generated, and the linked list structure is used to record the folder opening history. Combined with the shortcut keys and cursor position, the mouse wheel direction and number of times are determined to switch the target folder, simplifying the switching process between folders. .

Benefits of technology

It realizes quick switching between different folders, reduces the user's dependence on buttons or keyboard, improves work efficiency and user experience, and makes the operation simple and fast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114690993B
    Figure CN114690993B
Patent Text Reader

Abstract

The present invention discloses a folder switching method, device, computing device and storage medium. The folder switching method is executed in a computing device, and the computing device is connected to a mouse. The method comprises: receiving a first operation of the mouse; generating a folder switching request in response to a predetermined first event occurring during the first operation of the mouse; determining a target folder based on the folder switching request; and switching the currently displayed folder to the target folder. The method generates a folder switching request through the first operation input by the mouse and the predetermined first event, determines the target folder according to the folder switching request, and switches to the target folder. Thus, switching between different folders is realized, and the above switching process does not require the user to determine whether it is a target folder through each folder, which greatly improves work efficiency and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a folder switching method, device, computing equipment and storage medium. Background Art

[0002] In the file manager, users will frequently switch folders. To open a folder, you can double-click the folder icon or press the Enter key. When you need to go back to the previously opened directory, you need to click the back button with the mouse or use the keyboard shortcut. When you want to move forward, you also need to click the forward button. It is not very convenient to use.

[0003] Therefore, there is an urgent need to provide a more convenient folder switching method to improve work efficiency and user experience. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a folder switching method, apparatus, computing device and storage medium that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present invention, there is provided a folder switching method, which is executed in a computing device connected to a mouse, the method comprising: receiving a first operation of the mouse; generating a folder switching request in response to a predetermined first event occurring during the first operation of the mouse; determining a target folder based on the folder switching request; and switching a currently displayed folder to the target folder.

[0006] Optionally, in the folder switching method according to the present invention, the first event is receiving a shortcut key input event, and the first operation is a mouse wheel input, and the step of generating a folder switching request includes: parsing the shortcut key input event to determine a folder switching mode, the folder switching mode at least includes switching according to the historical opening records of each folder and switching in the parent folder or subfolder of each folder; generating a folder switching request according to the switching mode, and the direction and number of mouse wheel scrolling.

[0007] Optionally, in the folder switching method according to the present invention, the step of parsing shortcut key input events to determine the folder switching mode includes: if the input event is a first shortcut key input event, determining the folder switching mode is to switch according to the historical opening records of each folder; if the input event is a second shortcut key input event, determining the input folder mode is to switch between the parent folder or subfolder of each folder.

[0008] Optionally, in the folder switching method according to the present invention, the first shortcut key is the ALT key; and the second shortcut key is the SHIFT key.

[0009] Optionally, in the folder switching method according to the present invention, the first event is detecting that the cursor is located in the navigation area of ​​the currently displayed folder, and the first operation is mouse wheel input, and the step of generating a folder switching request includes: determining a folder switching mode based on the position of the cursor in the navigation area, the folder switching mode at least including switching according to the historical opening records of each folder and switching in the parent folder or subfolder of each folder; generating a folder switching request according to the switching mode, and the direction and number of mouse wheel scrolling.

[0010] Optionally, in the folder switching method according to the present invention, the step of determining the folder switching mode based on the position of the cursor in the navigation area includes: if the cursor is in the first area in the navigation area, determining the folder switching mode is to switch according to the historical opening records of each folder; if the cursor is in the second area in the navigation area, determining the input folder mode is to switch in the parent folder or subfolder of each folder.

[0011] Optionally, in the folder switching method according to the present invention, the first area is an area where the navigation function buttons are located in the navigation area; and the second area is an area where the address bar is located in the navigation area.

[0012] Optionally, in the folder switching method according to the present invention, before the step of receiving the first operation of the mouse, it also includes: initializing a linked list structure in the computing device, the linked list structure including a data field and an index field, the index pointer of the index field points to the head data field of the linked list structure; when each time a new folder is detected to be opened, the relevant information of the folder is inserted into the head data field of the linked list structure, and a blank data field is generated as the head data field of the linked list structure.

[0013] Optionally, in the folder switching method according to the present invention, when the switching mode is to switch according to the historical opening records of each folder, the step of determining the target folder based on the folder switching request includes: determining the data domain position corresponding to the currently displayed folder in the linked list structure; taking the data domain position corresponding to the currently displayed folder in the linked list structure as the initial position, and determining the data domain corresponding to the target folder in the linked list structure according to the direction and number of times the mouse wheel is scrolled; and determining the target folder based on the data domain corresponding to the target folder.

[0014] Optionally, in the folder switching method according to the present invention, when the switching mode is to switch among the parent folders or subfolders of each folder, based on the folder switching request, the step of determining the target folder includes: obtaining the storage path of the parent folder or subfolder according to the storage path of the currently displayed folder; determining the parent folder or subfolder based on the storage path, and using the determined parent folder or subfolder as the target folder.

[0015] According to another aspect of the present invention, there is provided a folder switching device, which resides in a computing device connected to a mouse, and includes: a receiving module, adapted to receive a first operation of the mouse; a generating module, adapted to generate a folder switching request in response to a predetermined first event occurring during the first operation of the mouse; a determining module, adapted to determine a target folder based on the folder switching request; and a switching module, adapted to switch a currently displayed folder to a target folder.

[0016] According to another aspect of the present invention, there is provided a computing device, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions include instructions for executing the above method.

[0017] According to another aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the above method.

[0018] According to the solution of the present invention, a folder switching request is generated through a first operation input by a mouse and a predetermined first event, a target folder is determined according to the folder switching request, and the target folder is switched to, thereby realizing switching between different folders, and the above switching process does not require the user to determine whether it is a target folder through each folder, which greatly improves work efficiency and user experience.

[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0021] Figure 1 A schematic diagram of a display interface for opening a folder in a file manager is shown;

[0022] Figure 2 A schematic diagram of a computing device 200 according to an embodiment of the present invention is shown;

[0023] Figure 3 A flowchart of a folder switching method 300 according to an embodiment of the present invention is shown;

[0024] Figure 4 A schematic diagram of a linked list structure according to an embodiment of the present invention is shown;

[0025] Figure 5 A schematic diagram of a process of generating a folder switching request by using a shortcut key according to an embodiment of the present invention is shown;

[0026] Figure 6 A flowchart of the operation of initializing a file manager according to an embodiment of the present invention is shown;

[0027] Figure 7 A schematic diagram of a process of generating folder switching by cursor position according to an embodiment of the present invention is shown;

[0028] Figure 8 A schematic diagram of a process for generating a folder switching request according to an embodiment of the present invention is shown;

[0029] Fig. 9 A schematic structural diagram of a folder switching device 900 according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0030] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0031] A file manager is an application that runs on an operating system and manages local files for users. For example, it is called a resource manager in early Windows systems and a file explorer in newer versions of Windows. It should be noted that only the Windows operating system is used as an example to specifically describe the file manager. However, it should be understood that file managers are generally provided in different operating systems, and this application does not limit this.

[0032] like Figure 1 As shown, Figure 1A schematic diagram of a display interface for opening a folder in a file manager is shown. Figure 1 Common file managers all provide forward and back buttons, which can be used to switch browsing history. If you navigate by clicking the forward and back buttons, the user first finds the button position, moves the mouse to the corresponding button, clicks the mouse, and checks whether the current folder is the target folder. If not, continue to click the function button until the target folder is reached, move the cursor, and then operate the file or folder.

[0033] In addition to clicking the forward and back buttons, the file manager also provides a shortcut key switching function. For example, ALT+left arrow key: back; ALT+right arrow key: forward; ALT+up arrow key: return to the upper directory; ALT+down arrow key: enter a subdirectory.

[0034] Although the operation method using shortcut keys is faster, most users cannot do without the mouse when using the computer, so the first step is to move your hand from the mouse to the keyboard, then use the shortcut keys to switch folders until you find the target folder, and then return to the mouse to complete the remaining operations. We found that if you frequently move your hand back and forth between the mouse and keyboard, the process is not fast.

[0035] In order to solve the above problems in the prior art, the solution of the present invention is proposed. An embodiment of the present invention provides a folder switching method, which can be executed in a computing device. Figure 1 FIG. 2 shows a block diagram of a computing device 200 according to an embodiment of the present invention. Figure 1 As shown, in a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between processor 204 and system memory 206.

[0036] Depending on the desired configuration, the processor 204 can be any type of processor, including but not limited to: a microprocessor (μP), a microcontroller (μC), a digital information processor (DSP), or any combination thereof. The processor 204 can include one or more levels of cache such as a primary cache 210 and a secondary cache 212, a processor core 214, and registers 216. An example processor core 214 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 218 can be used with the processor 204, or in some implementations, the memory controller 218 can be an internal part of the processor 204.

[0037] Depending on the desired configuration, the system memory 206 can be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.) or any combination thereof. The physical memory in the computing device usually refers to the volatile memory RAM, and the data in the disk needs to be loaded into the physical memory before it can be read by the processor 204. The system memory 206 may include an operating system 220, one or more applications 222, and program data 224. The application 222 is actually a plurality of program instructions, which are used to instruct the processor 204 to perform corresponding operations. In some embodiments, in some embodiments, the application 222 may be arranged to execute instructions on the operating system by one or more processors 204 using the program data 224. The operating system 220 may be, for example, Linux, Windows, etc., which includes program instructions for processing basic system services and performing tasks that depend on hardware. The application 222 includes program instructions for implementing various user-desired functions, and the application 222 may be, for example, a browser, instant messaging software, a software development tool (such as an integrated development environment IDE, a compiler, etc.), etc., but is not limited thereto. When the application 222 is installed into the computing device 200 , a driver module may be added to the operating system 220 .

[0038] When the computing device 200 starts running, the processor 204 reads and executes the program instructions of the operating system 220 from the memory 206. The application 222 runs on the operating system 220 and uses the interfaces provided by the operating system 220 and the underlying hardware to implement various functions desired by the user. When the user starts the application 222, the application 222 is loaded into the memory 206, and the processor 204 reads and executes the program instructions of the application 222 from the memory 206.

[0039] The computing device 200 also includes a storage device 232 including a removable storage 236 and a non-removable storage 238 , both of which are connected to the storage interface bus 234 .

[0040] The computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus / interface controller 230. Example output devices 242 include a graphics processing unit 248 and an audio processing unit 250. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 258. Example communication devices 246 may include a network controller 260, which may be arranged to facilitate communication with one or more other computing devices 262 via a network communication link via one or more communication ports 264.

[0041] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be carried out in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.

[0042] The computing device 200 also includes a storage interface bus 234 connected to the bus / interface controller 230. The storage interface bus 234 is connected to a storage device 232, which is suitable for data storage. Example storage devices 232 may include removable storage 236 (such as CD, DVD, USB flash drive, removable hard disk, etc.) and non-removable storage 238 (such as hard disk drive HDD, etc.).

[0043] In the computing device 200 according to the present invention, the application 222 includes a plurality of program instructions for executing the method 300 .

[0044] Figure 3A flowchart of a folder switching method 300 according to an embodiment of the present invention is shown. The method 300 is suitable for execution in a computing device (e.g., the aforementioned computing device 200). The computing device 200 is connected to a mouse, and the current interface of the computing device displays a folder interface. The folder interface refers to the "user interface" between a person and a file manager, that is, "UI". Or it can be said to be an interactive interface between different parts of a file manager.

[0045] like Figure 3 As shown, the purpose of method 300 is to implement a method for completing folder switching through mouse input, starting from step S302. In step S302, a first operation of the mouse is received. Specifically, the first operation is a mouse wheel input. It is easy to understand that the mouse wheel is located in front of the left and right buttons, and its usage scenarios are relatively few. As an indispensable input device for computing devices, the mouse greatly reduces the difficulty of using a computer. Most operations can be completed using the left and right buttons of the mouse, and the mouse wheel can realize the scrolling function of the page in most applications.

[0046] It should be noted that the method 300 provided in this embodiment is to switch between multiple opened folders. In other words, when executing the method 300, multiple folders have been opened in the computing device. Therefore, in order to better implement the method 300, a linked list structure will be constructed in advance in the computing device to store the information of each opened folder and the order in which each folder is opened. Specifically, the linked list structure can be constructed in the following way:

[0047] First, a linked list structure is initialized in a computing device. The linked list structure includes a data field and an index field. An index pointer of the index field points to a head data field of the linked list structure.

[0048] It should be noted that a linked list is an abstract data type consisting of a group of memory structures-nodes that are not necessarily connected (can be continuous or discontinuous) and are linked together in a specific order. There are three common types of linked lists: singly linked list, doubly linked list, and circular linked list. In this implementation, a single linked list structure can be used.

[0049] A singly linked list consists of various memory structures linked by a Next pointer. Each memory structure exists in the subsequent memory structure (except the end of the chain). The memory structure consists of a data field and a Next pointer field, such as Figure 4 As shown, Figure 4A schematic diagram of a linked list structure according to an embodiment of the present invention is shown. The storage of each data in the linked list consists of the following two parts: the data element itself (such as the folder information in this embodiment), the area where it is located is called the data domain. The pointer to the successor element, the area where it is located is called the pointer domain. The memory structure is called a node in the linked list. In other words, the linked list actually stores nodes one by one, and the real data elements are contained in these nodes.

[0050] Then, each time a new folder is detected to be opened, the constructed linked list structure is updated. Specifically, the relevant information of the folder is inserted into the head data field of the linked list structure, and a blank data field is generated as the head data field of the linked list structure. The head node of the linked list structure is an empty node. Each time a new folder is opened through the file manager, the file information of the folder is stored in the data field of the head node, and an empty node structure is generated as the head of the linked list structure.

[0051] In a specific example, the relevant pseudo code of the linked list structure is as follows:

[0052]

[0053] At this point, the construction of the linked list structure is completed. Subsequently, after receiving the first mouse operation, when a predetermined first event occurs during the first mouse operation, step S304 is entered to generate a folder switching request. It should be noted that in the file manager, the mouse wheel itself has a page scrolling function, and cooperates with the CTRL key to realize the zoom function of the file icon, or change the file view function, etc. Because the file manager itself can respond to the mouse wheel operation to realize functions such as page scrolling, it is necessary to distinguish the mouse wheel message. In this embodiment, the first event is set to distinguish whether the wheel input is for folder switching or other functions.

[0054] Specifically, the first event includes receiving a shortcut key input event or detecting that the cursor is located in the navigation area of ​​the currently displayed folder. In other words, when the computing device detects the input operation of the mouse wheel, detects that a designated key of the keyboard or other input device is in a key state, or when the mouse cursor is located in the navigation area of ​​the file manager, it indicates that the user needs to switch folders at this time, and a folder switching function is generated accordingly.

[0055] According to an embodiment, the first event is receiving a shortcut key input event. Step S304 includes the following sub-steps:

[0056] like Figure 5 As shown, Figure 5A flow chart of generating a folder switching request by a shortcut key according to an embodiment of the present invention is shown. First, in step S324, the shortcut key input event is parsed to determine the folder switching mode, which at least includes switching according to the historical opening records of each folder and switching in the parent folder or subfolder of each folder. Among them, switching according to the historical opening records of each folder corresponds to the left interface (or back interface) and the right interface (or forward interface) in the file manager navigation function interface. Switching in the parent folder or subfolder of each folder corresponds to the upward interface and downward interface in the file manager. The upward interface is to switch the current folder to its parent folder, and the downward interface is to switch the current folder to its subfolder.

[0057] For example, when using a file manager, the computing device will record each folder opening operation in the history, and can switch between opened folders through the forward interface, the backward interface, the upward interface, and the downward interface. In this example, the shortcut key + scroll wheel combination operation is equivalent to clicking the aforementioned left interface, right interface, upward interface, and downward interface.

[0058] Specifically, if the input event is a first shortcut key input event, the folder switching mode is determined to be switched according to the historical opening records of each folder. If the input event is a second shortcut key input event, the input folder mode is determined to be switched in the parent folder or subfolder of each folder.

[0059] Preferably, the first shortcut key is the ALT key, and the second shortcut key is the SHIFT key. That is, the ALT key in the keyboard can be used as a shortcut key for moving forward or backward, and the SHIFT key can be used as a shortcut key for moving up or down. It should be noted that since each user has different habits, or these two keys need to be occupied for other reasons, the user can set the shortcut keys by himself, and this application does not limit this. In the subsequent description, the ALT key and the SHIFT key are used as the default shortcut keys for explanation.

[0060] It should be noted that after the shortcut key settings are completed, they need to be saved in the configuration file of the file manager to take effect. Therefore, before opening the file manager, you need to initialize the file manager. Figure 6 As shown, Figure 6 FIG. 2 shows an operation flow chart of initializing a file manager according to an embodiment of the present invention. Figure 6First, in step S602, it is necessary to read the shortcut key configuration information of the file manager's navigation switching function. Then, in step S604, it is detected whether the shortcut key is configured or the wheel navigation is not disabled (that is, the folder switching function can be performed by the mouse wheel). If yes, it proceeds to step S606 to add a mouse wheel scroll response function in the configuration file of the file manager. If not, it means that the computing device prohibits the use of the mouse wheel to implement the folder switching function. After that, in step S608, start listening for mouse wheel messages. Then, it proceeds to step S610 to perform other initialization settings in the file manager. Finally, in step S612, the file manager is opened.

[0061] After determining to perform the folder switching mode, proceed to step S344 to generate a folder switching request according to the switching mode and the direction and number of times the mouse wheel is scrolled.

[0062] Continuing with the above example, after the file manager captures the wheel message, it checks the keyboard key status to see if the forward or backward shortcut keys are pressed. If the wheel is scrolled up and the shortcut key is pressed at the same time, a backward command is sent (i.e., a backward switch request is generated) to return to the last opened folder, which is equivalent to clicking the back button once and completing a backward action. If the wheel is scrolled down and the shortcut key is pressed at the same time, a forward command is sent (i.e., a forward switch request is generated), which is equivalent to clicking the forward button once.

[0063] It should be noted that operations completed in this way will not be recorded in the history record.

[0064] When the folder we open is under multiple sub-directories, we often need to return to the upper directory, and we need to navigate upward. After the file manager captures the upward scrolling message of the wheel, it checks whether the upward shortcut key is pressed. If this shortcut key is pressed, it sends an upward command (i.e. generates an upward switch request) to open the upper folder. At this time, if you want to return to the lower folder, you can capture the downward scrolling message of the wheel and the down modifier key, and send a down command to enter the lower directory.

[0065] Likewise, operations completed in this way will not be recorded in the history.

[0066] According to another embodiment, the first event is detecting that the cursor is located in the navigation area of ​​the folder interface. Step S304 includes the following sub-steps:

[0067] like Figure 7 As shown, Figure 7A schematic diagram of a process for generating folder switching by cursor position according to an embodiment of the present invention is shown. First, in step S364, the folder switching mode is determined based on the position of the cursor in the navigation area. Specifically, if the cursor is in the first area in the navigation area, the folder switching mode is determined to be switched according to the historical opening records of each folder. If the cursor is in the second area in the navigation area, the input folder mode is determined to be switched in the parent folder or subfolder of each folder. Preferably, the first area can be the area where the navigation function buttons are located in the navigation area ( Figure 1 The black frame area in the middle includes a forward button, a back button and an up button). The second area can be the area where the address bar is located in the navigation area. That is, when the mouse cursor is located in the area where the navigation function buttons are located in the navigation area, the folder switching mode is determined to be switched according to the historical opening records of each folder. When the mouse cursor is located in the area where the address bar is located in the navigation area, the switching mode of the folder is determined to be switched between the parent folder or subfolder of each folder. Of course, the user can also set the first area and / or the second area according to his own habits, and this application is not limited to this.

[0068] It should be noted that after setting the first area and the second area, the settings need to be saved in the configuration file of the file manager to take effect, that is, the file manager needs to be initialized. Specifically, please refer to the aforementioned initialization process of the file manager, which will not be repeated here.

[0069] Then, in step S384, a folder switching request is generated according to the switching mode, and the direction and number of times the mouse wheel is scrolled.

[0070] It should be noted that the principle and workflow of step S384 are similar to those of the above-mentioned step S344. For relevant details, please refer to the description of the above-mentioned step S344, and will not be repeated here.

[0071] In addition, the detection of shortcut key input events and the detection of cursor position can be initialized simultaneously during the initialization phase of the file manager. When it is detected that the current cursor position is in the navigation area and a shortcut key input event is detected at the same time, one of the events will no longer take effect. For example, when the cursor is in the navigation area or in the address bar, the shortcut key input time will no longer take effect, that is, the cursor position determination has higher authority.

[0072] Continuing with the previous example, Figure 8 As shown, Figure 8 A schematic diagram of a process of generating a folder switching request according to an embodiment of the present invention is shown.

[0073] In step S801, the computing device receives a mouse wheel input event.

[0074] In step S802, it is determined whether an ALT shortcut key input event is received or whether the current mouse cursor position is in the forward and backward navigation area.

[0075] In step S803, if an ALT shortcut key input event is received or the current mouse cursor position is in the forward and backward area of ​​the navigation, it is determined whether the mouse wheel is scrolled upward. If so, a folder back switch request is generated; if not, a folder forward switch request is generated.

[0076] In step S804, if no ALT shortcut key input event is received or the current mouse cursor position is not in the forward and backward navigation area, it is determined whether a SHIFT shortcut key input event is received or whether the current mouse cursor position is in the navigation address bar area.

[0077] In step S805, if a SHIFT shortcut key input event is received or the current mouse cursor position is in the navigation address bar area, it is determined whether the mouse wheel is scrolled upward. If so, a switch request to switch to the parent folder is generated. If not, a switch request to switch to the child folder is generated.

[0078] It should be noted that if no ALT shortcut key input event or SHIFT shortcut key input event is received, and the mouse cursor is neither in the forward and backward navigation area nor in the address bar area, it means that the mouse wheel event is not pointing to the folder switching function, and the mouse wheel event can be responded to normally.

[0079] In step S306, based on the folder switching request, the target folder is determined. As mentioned above, a linked list structure is provided in the computing device, and therefore, the target folder can be determined by the linked list structure, as follows:

[0080] When the folder switching mode is to switch based on the historical opening records of each folder, the steps to determine the target folder are as follows:

[0081] The first step is to determine the data field position corresponding to the currently displayed folder in the linked list structure, that is, the position of the folder currently displayed by the computing device corresponding to the linked list structure.

[0082] The data domain position corresponding to the currently displayed folder in the linked list structure is used as the initial position, and the data domain corresponding to the target folder is determined in the linked list structure according to the direction and number of times the mouse wheel is rolled. The direction of the wheel rolling corresponds to moving forward or backward in the linked list. For example, if the wheel is rolled upward, a backward switching instruction will be generated, which corresponds to searching to the left in the linked list structure. If the wheel is rolled once, it is a switching instruction, and if it is rolled twice, it is two switching instructions, so as to determine the data domain of the target folder in the linked list structure.

[0083] The second step is to determine the target folder based on the data domain corresponding to the target folder. The data domain corresponding to the target folder stores folder information of the folder, such as the storage path and name of the folder, and the target folder is determined based on the folder information.

[0084] In a specific example, when the mouse wheel is rotated upward N times, the folder back switching function is triggered by default, and the index pointer at the head of the linked list moves N nodes from the current node to the end of the linked list in sequence, and the corresponding folder is opened according to the node information pointed to by the index pointer. When the mouse wheel is rotated downward N times, the folder forward switching function is triggered by default, and the index pointer moves N nodes from the current node to the head of the linked list in sequence, and the corresponding folder is opened.

[0085] In another example, a partial pseudo code is shown for a switching mode in which folder switching is performed according to the historical opening records of each folder:

[0086]

[0087] When the folder switching mode is to switch between the parent folder or subfolder of each folder, the steps to determine the target folder are as follows:

[0088] The first step is to obtain the storage path of the parent folder or subfolder according to the storage path of the currently displayed folder.

[0089] Based on the storage path, a parent folder or a subfolder is determined, and the determined parent folder or subfolder is used as the target folder.

[0090] It should be noted that, in the folder switching method of this embodiment, it is not possible to open a new folder, and only switching between opened folders can be performed.

[0091] For example, when switching to a parent folder (switching up), the parent folder path is obtained according to the current folder path, and then the parent folder is opened. When switching to a subfolder (switching down), the subfolder to be entered is calculated according to the current folder path and the folder path pointed to by the index pointer, and then the subfolder is entered.

[0092] In a specific example, a partial pseudo code for implementing folder switching is shown for a switching mode in which the parent folder or subfolder of each folder is switched:

[0093]

[0094]

[0095] In addition, the forward and backward functions will not change the history records, only the index pointer position will change. The up and down functions will not change the history records, and the index pointer will not change. Once the user does not use the navigation function to open a folder, the record from the head of the linked list to the position pointed to by the index pointer needs to be cleared, and the new folder information needs to be inserted into the head of the linked list, and the current index also points to the head of the linked list. In addition, each time a file manager instance is opened, the navigation management module initializes an internal linked list structure. This record is only valid during the life cycle of this file manager to avoid confusion with other file manager history records.

[0096] Finally, in step S308, the currently displayed folder is switched to the target folder so that the target folder interface is displayed in the current interface of the computing device.

[0097] The method 300 provided in this embodiment generates a folder switching request through a first operation input by a mouse and a predetermined first event, determines a target folder according to the folder switching request, and switches to the target folder. Thus, switching between different folders is achieved, and the above switching process does not require the user to determine whether it is a target folder through each folder, which greatly improves work efficiency and user experience. In addition, the switching of folders is achieved by using a mouse wheel, and the switching process is convenient and fast; the operation is simple, which can bring a simpler and novel experience to the user.

[0098] Fig. 9 A schematic structural diagram of a folder switching device 900 according to an embodiment of the present invention is shown. The device 900 resides in a computing device (e.g., the aforementioned computing device 200), the computing device is connected to a mouse, and the current interface of the computing device displays a folder interface. It includes a receiving module 920, a generating module 940, a determining module 960, and a switching module 980 that are mutually coupled. Among them, the receiving module 920 is suitable for receiving a first operation of the mouse. The generating module 940 is suitable for generating a folder switching request in response to a predetermined first event occurring during the first operation of the mouse. The determining module 960 is suitable for determining a target folder based on the folder switching request. The switching module 980 is suitable for switching the currently displayed folder to a target folder so that the target folder interface is displayed on the current interface of the computing device.

[0099] It should be noted that the working process and principle of the device 900 provided in this embodiment are similar to those of the aforementioned method 300. For relevant details, please refer to the description of the aforementioned method 300, which will not be repeated here.

[0100] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.

[0101] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the method of the present invention according to the instructions in the program code stored in the memory.

[0102] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.

[0103] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to implement the content of the present invention described herein, and the above description of specific languages ​​is for the purpose of disclosing the preferred embodiment of the present invention.

[0104] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0105] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0106] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.

[0107] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0108] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0109] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.

[0110] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.

[0111] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.

Claims

1. A folder switching method, executed in a computing device, wherein the computing device is connected to a mouse, the method comprising: receiving a first operation of the mouse; In response to a predetermined first event occurring during a first operation of the mouse, generating a folder switching request, wherein the first event is receiving a shortcut key input event, and the first operation is a mouse wheel input; Based on the folder switching request, determining a target folder; as well as Switch the currently displayed folder to the target folder; The generating of the folder switching request comprises: Parsing the shortcut key input event to determine a folder switching mode, wherein the folder switching mode at least includes switching according to the historical opening records of each folder and switching in the parent folder or subfolder of each folder; Generate the folder switching request according to the switching mode, and the direction and number of times the mouse wheel is scrolled; The parsing of the shortcut key input event to determine the folder switching mode includes: If the input event is a first shortcut key input event, determining that the folder switching mode is switched according to the historical opening records of each folder, and the first shortcut key is the ALT key; If the input event is a second shortcut key input event, it is determined that the input folder mode is to switch between parent folders or subfolders of each folder, and the second shortcut key is the SHIFT key.

2. The method of claim 1, wherein: Before the step of receiving the first operation of the mouse, the method further includes: Initializing a linked list structure in the computing device, the linked list structure comprising a data field and an index field, an index pointer of the index field pointing to a head data field of the linked list structure; Whenever it is detected that a new folder is opened, the relevant information of the folder is inserted into the head data field of the linked list structure, and a blank data field is generated as the head data field of the linked list structure.

3. The method of claim 2, wherein: When the switching mode is to switch according to the historical opening records of each folder, the step of determining the target folder based on the folder switching request includes: Determine the data field position corresponding to the currently displayed folder in the linked list structure; Taking the data field position corresponding to the currently displayed folder in the linked list structure as the initial position, and determining the data field corresponding to the target folder in the linked list structure according to the direction and number of times the mouse wheel is rolled; The target folder is determined based on the data domain corresponding to the target folder.

4. The method of claim 3, wherein: When the switching mode is to switch between parent folders or child folders of each folder, the step of determining the target folder based on the folder switching request includes: According to the storage path of the currently displayed folder, get the storage path of the parent folder or subfolder; Based on the storage path, the parent folder or subfolder is determined, and the determined parent folder or subfolder is used as the target folder.

5. A folder switching method, executed in a computing device, wherein the computing device is connected to a mouse, the method comprising: receiving a first operation of the mouse; generating a folder switching request in response to a predetermined first event occurring during the first operation of the mouse, wherein the first event is detecting that a cursor is located in a navigation area of ​​a currently displayed folder, and the first operation is a mouse wheel input; Based on the folder switching request, determining a target folder; as well as Switch the currently displayed folder to the target folder; The generating of the folder switching request comprises: Determining a folder switching mode based on a position of a cursor in the navigation area, the folder switching mode at least including switching according to a historical opening record of each folder and switching in a parent folder or a subfolder of each folder; Generate the folder switching request according to the switching mode, and the direction and number of times the mouse wheel is scrolled; The step of determining the folder switching mode based on the position of the cursor in the navigation area includes: If the cursor is in a first area of ​​the navigation area, determining that the folder switching mode is switched according to the historical opening records of each folder, the first area is an area where a navigation function button area in the navigation area is located; If the cursor is in a second area within the navigation area, it is determined that the folder input mode is to switch between parent folders or child folders of each folder, and the second area is an area within the navigation area where the address bar is located.

6. A folder switching device, resident in a computing device connected to a mouse, comprising: A receiving module, adapted to receive a first operation of the mouse; a generating module, adapted to generate a folder switching request in response to a predetermined first event occurring during a first operation of the mouse, wherein the first event is receiving a shortcut key input event, and the first operation is a mouse wheel input; A determination module, adapted to determine a target folder based on the folder switching request; as well as A switching module, adapted to switch the currently displayed folder to the target folder; The generating of the folder switching request comprises: Parsing the shortcut key input event to determine a folder switching mode, wherein the folder switching mode at least includes switching according to the historical opening records of each folder and switching in the parent folder or subfolder of each folder; Generate the folder switching request according to the switching mode, and the direction and number of times the mouse wheel is scrolled; The parsing of the shortcut key input event to determine the folder switching mode includes: If the input event is a first shortcut key input event, determining that the folder switching mode is switched according to the historical opening records of each folder, and the first shortcut key is the ALT key; If the input event is a second shortcut key input event, it is determined that the input folder mode is to switch between parent folders or subfolders of each folder, and the second shortcut key is the SHIFT key.

7. A folder switching device, resident in a computing device connected to a mouse, comprising: A receiving module, adapted to receive a first operation of the mouse; a generating module, adapted to generate a folder switching request in response to a predetermined first event occurring during a first operation of the mouse, wherein the first event is detecting that a cursor is located within a navigation area of ​​a currently displayed folder, and the first operation is a mouse wheel input; A determination module, adapted to determine a target folder based on the folder switching request; as well as A switching module, adapted to switch the currently displayed folder to the target folder; The generating of the folder switching request comprises: Determining a folder switching mode based on a position of a cursor in the navigation area, the folder switching mode at least including switching according to a historical opening record of each folder and switching in a parent folder or a subfolder of each folder; Generate the folder switching request according to the switching mode, and the direction and number of times the mouse wheel is scrolled; The step of determining the folder switching mode based on the position of the cursor in the navigation area includes: If the cursor is in a first area of ​​the navigation area, determining that the folder switching mode is switched according to the historical opening records of each folder, the first area is an area where a navigation function button area in the navigation area is located; If the cursor is in a second area within the navigation area, it is determined that the folder input mode is to switch between parent folders or child folders of each folder, and the second area is an area within the navigation area where the address bar is located.

8. A computing device comprising: at least one processor; and A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 1 to 5.

9. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the method according to any one of claims 1 to 5.