Directory entry skipping method and related equipment
By acquiring the identification information of the target item and automatically detecting the folding status, and combining it with distance parameters for dynamic navigation, the problem of users having difficulty accurately locating items in the textbook catalog has been solved, thus improving the accuracy of catalog navigation and operational efficiency.
Patent Information
- Application Number
- CN202511192175.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-25
- Publication Date
- 2025-12-12
AI Technical Summary
In the education industry, the multi-level and long list structure of textbook catalogs makes it difficult for users to accurately locate and jump to the target page. In existing technologies, users need to manually expand the parent items level by level, which is inefficient and has obvious positioning errors.
By acquiring the target item's identification information, the system automatically detects its collapsed state and expands the parent item. It then dynamically jumps between the current item and the target item, employing different speed strategies to optimize the jump path.
It improves the accuracy and efficiency of directory navigation, avoids the inefficient operation of users manually expanding level by level, optimizes the rationality of the jump path, and significantly improves the smoothness of directory navigation and user experience.
Smart Images

Figure CN121116918A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of directory navigation technology, and in particular to a method and related equipment for navigation of directory entries. Background Technology
[0002] In the education industry, textbook catalogs typically feature multi-level, long lists, such as nested structures of chapters, sections, and subsections. To simplify browsing, users often collapse the catalog, displaying only the currently relevant level or only a portion of the content.
[0003] When users need to navigate from the current page to another target page, using a directory can be inconvenient. This is especially true in complex directory structures, where users may not be able to accurately locate and navigate to the correct page. Summary of the Invention
[0004] In view of the above problems, this application provides a method.
[0005] The embodiments of this application disclose the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a method for jumping to directory entries, the method comprising:
[0007] In response to a jump instruction, the identifier information of the target entry is obtained; the jump instruction is used to indicate a jump from the current entry to the target entry;
[0008] Determine the collapsed state of the target entry; the collapsed state includes a hidden state and a displayed state;
[0009] When the target entry is in a hidden state, expand the parent entry to which the target entry belongs and change the target entry's collapsed state to a visible state; based on the distance between the target entry and the current entry, jump from the current entry to the target entry;
[0010] When the target entry is in a displayed state while it is in a collapsed state, the user jumps from the current entry to the target entry based on the distance between the target entry and the current entry.
[0011] In one possible implementation, determining the folded state of the target entry includes:
[0012] Based on the identification information of the target entry, the target entry is matched from the state mapping table; the state mapping table is used to record entries whose collapsed state is hidden.
[0013] If a match is successful, the folded state of the target entry is determined to be a hidden state;
[0014] If a match fails, the target entry is determined to be in a displayed state instead of a collapsed state.
[0015] In one possible implementation, expanding the parent entry to which the target entry belongs includes:
[0016] Remove the identification information of all entries under the parent entry of the target entry from the state mapping table, and restore the parent entry of the target entry from the collapsed state to the expanded state.
[0017] In one possible implementation, jumping from the current entry to the target entry based on the distance between the target entry and the current entry includes:
[0018] Determine the actual number of entries displayed between the target entry in the directory list and the current entry;
[0019] Jump from the current entry to the target entry based on the number of entries.
[0020] In one possible implementation, the jump from the current entry to the target entry includes:
[0021] If the distance is less than or equal to a distance threshold, the control view scrolls from the current entry to the target entry at a first speed;
[0022] If the distance is greater than the proximity threshold, the control view scrolls from the current entry to the target entry at a second speed; the second speed is greater than the first speed.
[0023] In one possible implementation, the jump instruction is generated by at least one of the following methods:
[0024] In response to the user triggering the floating jump icon, the jump instruction is generated;
[0025] The jump instruction is generated in response to triggering the jump icon in the navigation bar;
[0026] In response to receiving a voice command indicating a jump, a jump command is generated.
[0027] In one possible implementation, the method further includes:
[0028] In response to the triggering of the collapse command, the identification information of all entries under the parent entry to which the entry to be collapsed belongs is added to the status mapping table, and the parent entry to which the entry to be collapsed belongs is collapsed and displayed.
[0029] Secondly, embodiments of this application provide a directory entry navigation device, comprising:
[0030] The acquisition module is used to acquire the identification information of the target entry in response to a jump instruction; the jump instruction is used to indicate a jump from the current entry to the target entry;
[0031] A determining module is used to determine the collapsed state of the target entry; the collapsed state includes a hidden state and a displayed state;
[0032] The jump module is used to expand the parent entry to which the target entry belongs and change the collapsed state of the target entry to the displayed state when the target entry is in a hidden state; and to jump from the current entry to the target entry based on the distance between the target entry and the current entry.
[0033] The jump module is also used to jump from the current entry to the target entry when the target entry is in a displayed state, based on the distance between the target entry and the current entry.
[0034] In one possible implementation, a module is defined, specifically for:
[0035] Based on the identification information of the target entry, the target entry is matched from the state mapping table; the state mapping table is used to record entries whose collapsed state is hidden.
[0036] If a match is successful, the folded state of the target entry is determined to be a hidden state;
[0037] If a match fails, the target entry is determined to be in a displayed state instead of a collapsed state.
[0038] In one possible implementation, the jump module is specifically used for:
[0039] Remove the identification information of all entries under the parent entry of the target entry from the state mapping table, and restore the parent entry of the target entry from the collapsed state to the expanded state.
[0040] In one possible implementation, the jump module is specifically used for:
[0041] Determine the actual number of entries displayed between the target entry in the directory list and the current entry;
[0042] Jump from the current entry to the target entry based on the number of entries.
[0043] In one possible implementation, the jump module is specifically used for:
[0044] If the distance is less than or equal to a distance threshold, the control view scrolls from the current entry to the target entry at a first speed;
[0045] If the distance is greater than the proximity threshold, the control view scrolls from the current entry to the target entry at a second speed; the second speed is greater than the first speed.
[0046] In one possible implementation, the jump instruction is generated by at least one of the following methods:
[0047] In response to the user triggering the floating jump icon, the jump instruction is generated;
[0048] The jump instruction is generated in response to triggering the jump icon in the navigation bar;
[0049] In response to receiving a voice command indicating a jump, a jump command is generated.
[0050] In one possible implementation, the device further includes:
[0051] The folding module is used to add the identification information of all entries under the parent entry of the entry to be folded to the status mapping table in response to the folding command, and to fold the parent entry of the entry to be folded.
[0052] Thirdly, embodiments of this application provide a control device, including a processor and a memory, wherein the memory is used to store programs, instructions or code, and the processor is used to execute the programs, instructions or code in the memory to perform the directory entry jumping method as described in any of the first aspects.
[0053] Fourthly, embodiments of this application provide a computer-readable storage medium, characterized in that it stores a computer program, which is loaded by a processor to execute the directory entry jumping method as described in any of the first aspects.
[0054] Compared with the prior art, this application has the following beneficial effects:
[0055] This application provides a method for navigation through directory entries. The method first ensures the accuracy of the navigation target by acquiring the target entry's identifier information. Then, it automatically detects the collapsed state of the target entry. When the target entry is hidden, the system actively expands the parent entry and synchronously updates the display state, avoiding the inefficient operation of manually expanding each level. Simultaneously, it performs navigation based on the actual display distance between the current entry and the target entry. This solves the positioning error problem caused by ignoring the collapsed state in traditional navigation methods and optimizes the rationality of the navigation path through dynamic adaptation of distance parameters. Ultimately, while ensuring the complete display of the target entry, it significantly improves the smoothness of directory navigation and the user experience. Through automated collapsed state processing and dynamic distance calculation, the accuracy and operational efficiency of directory navigation are improved. Attached Figure Description
[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 A schematic diagram illustrating a method for jumping through directory entries provided in an embodiment of this application;
[0058] Figure 2 This is a schematic diagram of a target entry jump device provided in an embodiment of this application. Detailed Implementation
[0059] As described earlier, current textbook catalogs typically feature multi-level, long lists, such as nested structures of chapters, sections, and subsections. When a target entry is hidden, the user must manually expand the parent entry to access it, as the system cannot automatically recognize and handle folded relationships. For example, in a multi-level nested document catalog, if the target entry is located under a sub-entry that has been folded three levels, the user must manually expand each level to navigate, resulting in low efficiency.
[0060] To address this technical problem, this application provides a method for navigation through directory entries. By automating the handling of folded states and dynamically calculating distances, the accuracy and efficiency of directory navigation are improved. This method first ensures the accuracy of the navigation target by acquiring the target entry's identifier information. Then, it automatically detects the folded state of the target entry. When the entry is hidden, the system actively expands the parent entry and updates its display state synchronously, avoiding the inefficient manual expansion by the user. Simultaneously, it performs navigation based on the actual display distance between the current entry and the target entry. This solves the positioning error problem caused by ignoring folded states in traditional navigation methods and optimizes the rationality of the navigation path through dynamic adaptation of distance parameters. Ultimately, while ensuring the complete display of the target entry, it significantly improves the smoothness of directory navigation and the user experience.
[0061] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0062] like Figure 1 As shown, Figure 1A method for jumping to directory entries provided in this application embodiment
[0063] S101: In response to a jump instruction, obtain the identification information of the target entry.
[0064] The target item can be an item marked by the user, such as an item that the user has saved, which usually represents a frequently accessed or important content node; or it can be an item that is currently playing, that is, an item that is currently active and continuously outputting in a multimedia scenario (such as document reading, video playback, audio playback).
[0065] It's important to note that the item being played may be different from the item being viewed. For example, while a user is browsing the content of the current item in a document, the audio playback module may still be playing the content of other items in the same document in the background. In this case, the item being played and the item being viewed are different nodes.
[0066] A jump instruction is used to indicate a jump from the current entry to the target entry. Jump instructions can be generated in various interactive ways.
[0067] Specifically, the jump instruction is generated in at least one of the following ways: in response to a user triggering a floating jump icon, the jump instruction is generated; in response to a user triggering a jump icon in the navigation bar, the jump instruction is generated; in response to obtaining a voice command to indicate the jump, the jump instruction is generated.
[0068] As an example, a draggable jump icon can be displayed floating in the directory interface. When the user clicks the icon, the system pops up an item selection panel. The user enters keywords, hierarchical paths, or directly selects an item through the panel. The system parses the input and generates corresponding target item identification information, thereby triggering the jump instruction.
[0069] Floating navigation icons provide quick access, allowing users to navigate without having to look at the navigation bar, which is especially useful for fast navigation through long directories or deeply hierarchical structures. Furthermore, the draggable nature of these icons prevents them from obscuring key content, improving interface usability.
[0070] As another example, a jump icon (such as a "Jump to" button) can be permanently placed in the navigation bar at the top or side of the interface. When the user clicks it, they enter the jump mode. The system automatically obtains the complete path of the current directory through the navigation bar's hierarchical positioning function and generates a jump instruction by combining it with the target entry name or path entered by the user.
[0071] The navigation bar's jump icons can be adapted to fixed navigation scenarios, allowing users to quickly initiate jumps through habitual operations (such as clicking the top button), conforming to traditional interaction logic. Furthermore, the navigation bar's hierarchical positioning function can automatically fill in the current path, reducing user input costs.
[0072] As another example, the system can integrate a speech recognition module, such as Automatic Speech Recognition (ASR). Users can trigger navigation by speaking voice commands, such as navigating to Chapter 3, Section 2. The speech recognition module converts the user's speech into text, extracts the identifier information of the target item (such as chapter number and item name) through keyword matching or semantic parsing, and generates the navigation command. This supports contactless interaction and is suitable for scenarios such as mobile devices or in-vehicle systems, improving operational convenience. Furthermore, the natural language parsing capabilities of the voice commands can handle ambiguous expressions (such as "jump to the item you just viewed"), enhancing the system's fault tolerance.
[0073] By combining various triggering methods, the embodiments of this application cover multiple user scenarios such as graphical interaction, fixed navigation, and contactless operation. They retain traditional interaction habits (such as navigation bar buttons) while introducing innovative interaction forms (such as floating icons and voice commands), significantly improving the flexibility of jump command generation and the ease of system use.
[0074] Identification information is used to identify unique entries and to accurately locate them within the directory structure. Identification information can be a unique ID or hierarchical path (such as "Chapter 1 - Sub-Chapter 2 - Entry 3"), or other identifiers that uniquely determine the location of an entry.
[0075] The system can capture user navigation actions (such as clicks, voice input, etc.) through an event listening mechanism, parse the operation content, and extract the identification information of the target item. For example, when a user clicks on an item in a directory, the system obtains the unique ID of the item through event binding of the front-end framework (such as React or Vue); if it is a voice command, the system uses speech recognition technology to parse the item name or path mentioned by the user and maps it to the system's internal identification information.
[0076] Step S101 is the starting point of the entire jump process, and its core function is to clarify the jump target. By obtaining the unique identifier of the target item, the system can accurately locate the target position, avoiding jump errors caused by duplicate item names or ambiguous paths, and providing accurate basic data for subsequent folding state detection and distance calculation.
[0077] S102: Determine the folding state of the target entry.
[0078] Collapse status indicates the display state of an entry within the directory structure. Collapse status includes hidden and displayed states. In hidden state, the entry is collapsed and its content is not visible; in displayed state, the entry is expanded and its content is visible.
[0079] Different processing methods are used depending on the collapsing state of the target item. When the target item is in a hidden state, step S103 is executed first, followed by step S104. When the target item is in a displayed state, step S104 is executed directly.
[0080] In one possible implementation, the folding state of the target entry can be determined based on a state mapping table. Step S102 specifically includes:
[0081] Based on the identifier information of the target entry, the target entry is matched against the state mapping table. If a match is successful, the collapsed state of the target entry is determined to be hidden; if a match fails, the collapsed state of the target entry is determined to be displayed.
[0082] The state map is the core data structure used to manage the collapsed state of directory entries, specifically recording entries that are currently in a hidden state. The state map is a key-value pair storage table, typically implemented using a HashMap. The key uniquely identifies the target entry, and the value identifies its collapsed state, taking the values "hidden" or "shown".
[0083] The state mapping table allows for quick querying of the collapsed state of a target item based on its identifier. If the target item's identifier exists in the state mapping table, it indicates that the target item is in a hidden state. In this case, step S103 should be executed. If the target item's identifier is not found in the state mapping table, it indicates that the target item is in a displayed state. In this case, step S104 should be executed directly.
[0084] As an example, if the target entry has a multi-level nested structure (such as "Chapter 1 - Sub-Chapter A - Entry X"), the system needs to recursively check the folding status of all its parent levels. For instance, if "Sub-Chapter A" is hidden, then "Entry X" under it will be invisible even if it is not directly marked as hidden, due to the folding of its parent level. In this case, the parent directory should be expanded first.
[0085] This application embodiment utilizes the hash lookup mechanism of HashMap, enabling the system to complete state detection in constant time, thus avoiding the performance overhead caused by traditional directory tree traversal, such as recursively traversing all parent levels.
[0086] In one possible implementation, the state map is empty at system startup. Only when a user performs a collapse operation is the system added to the state map with the identifier information of the collapsed entry and marked as "hidden state".
[0087] Specifically, in response to a folding command, the identifier information of the entries under the parent entry of the entry to be folded is added to the status mapping table, and the parent entry of the entry to be folded is displayed in a folded manner.
[0088] When a user triggers a collapse command, such as clicking the collapse button, the system adds the identifier information of the target item and its sub-items to the state mapping table and records it as being in an unhidden state. When the user triggers an expand command, the system removes the identifier information of the target item and its sub-items from the state mapping table, restoring it to the displayed state.
[0089] The state mapping table is synchronized in real time with user actions (such as collapsing or expanding) to ensure consistency between system state and interface display. For example, after a user manually expands a parent directory, the system automatically removes its child entry identifier from the mapping table to avoid misjudgments during subsequent navigation.
[0090] S103: Expand the parent item to which the target item belongs, and change the collapsed state of the target item to the displayed state.
[0091] In hierarchical data structures (such as tree menus, file directories, navigation bars, etc.), a parent entry refers to the container that directly contains the target entry. When a parent entry is collapsed, all child entries under the parent entry are hidden.
[0092] When step S102 determines that the target item is in a hidden state, the target item is transformed from hidden to displayed by dynamically updating the state mapping table and adjusting the display state of the parent item, thus avoiding the inability to directly jump to items in a hidden state.
[0093] Specifically, the system removes the identifiers of all entries under the parent entry of the target entry from the state mapping table. As mentioned earlier, the state mapping table only records entries in a hidden state, and the removal operation means that these entries are no longer marked as hidden. For example, if the target entry "Chapter 1 - Sub-Chapter A - Entry X" is hidden because its parent entry "Sub-Chapter A" is collapsed, the system will delete the identifiers of all entries under "Sub-Chapter A" (including "Entry X" and other entries at the same level) from the state mapping table to ensure that these entries are determined to be displayed in subsequent queries.
[0094] At the interface layer, the parent item of the target item is switched from a collapsed state to an expanded state. This process can be achieved through front-end rendering logic, for example, by modifying the properties of the UI component corresponding to the parent item to trigger a re-render of the directory list, so that the child items (including the target item) that were originally collapsed and covered are displayed in the interface.
[0095] It should be noted that if the target item has a multi-level nested structure (such as "Chapter 1 - Sub-Chapter A - Sub-Chapter A1 - Item Y"), the system will automatically trace all parent items containing the target item and expand them level by level. For example, if both "Sub-Chapter A" and "Sub-Chapter A1" are collapsed, the system will first expand "Sub-Chapter A," then expand "Sub-Chapter A1" below it, until the level containing the target item "Item Y" is fully visible. This process ensures that even if the target item is nested in a deep hierarchy, it can be accurately displayed through the hierarchical expansion logic.
[0096] Furthermore, the expand operation forms a symmetrical logic with the "collapse instruction processing" mentioned in step S102. When collapsing, the item identifier is added to the state mapping table; when expanding, it is removed from the table. Through real-time updates of the state mapping table, the system ensures that its judgment of the item display status is always consistent with the actual display on the interface. For example, after a user manually expands a parent item, the system will simultaneously perform the identifier removal operation to avoid misjudging that the item is still hidden when navigating later due to the state mapping table not being updated. After executing step S103, step S104 is executed.
[0097] Step S103 ensures the accuracy of the target item's status at the data layer and makes the hidden item visible at the interface layer, laying the foundation for the precise jump in the subsequent step S104. Compared to the tedious manual layer-by-layer unfolding operation in traditional solutions, this step significantly improves the efficiency of locating hidden items through automated hierarchical tracing and status synchronization.
[0098] S104: Jump from the current entry to the target entry based on the distance between the target entry and the current entry.
[0099] After the target item is expanded in step S103 or determined to be in a display state in step S102, the system needs to perform a jump operation based on the "distance" between the two. The core of this step is to balance positioning efficiency and user perception by quantifying the visual interval between items and adopting a differentiated jump strategy, avoiding a disjointed experience caused by jumping too fast or too slow.
[0100] The distance between the target entry and the current entry refers to the actual number of entries displayed between the current entry and the target entry in the directory list. Only entries that are displayed are counted, excluding hidden entries.
[0101] Specifically, the system iterates through all visible items in the current view, generating a list of items actually displayed, excluding items that are collapsed or hidden. It determines the actual number of items displayed between the target item and the current item in the directory list, and then jumps from the current item to the target item based on this number. As an example, the system can obtain the position indices of the current item and the target item in the list, such as the current item being the 3rd item and the target item being the 8th. The difference between the two indices is calculated, and the absolute value of this difference is the distance between the target item and the current item.
[0102] To balance efficiency and user experience, the system employs different jump speeds and methods based on distance. One possible implementation involves jumping from the current item to the target item, including:
[0103] If the distance is less than or equal to the distance threshold, the control view scrolls from the current entry to the target entry at a first speed.
[0104] If the distance is greater than the proximity threshold, the control view scrolls from the current item to the target item at a second speed. The second speed is greater than the first speed.
[0105] The distance threshold is a preset value and can be adjusted according to screen size or directory density. When the distance is less than or equal to the threshold, a short-distance jump is performed, and the view scrolls smoothly at a first speed (e.g., 500ms / item). For example, at a distance of 3, the scrolling process lasts about 1.5 seconds, allowing the user to clearly see the item gradually move from its current position to the target position, avoiding disorientation caused by sudden jumps. This method is suitable for short-distance navigation, preserving the user's spatial awareness of the directory structure.
[0106] When the distance exceeds the threshold, a long-distance jump is performed, and the item is scrolled quickly to the target item at a second speed (e.g., 200ms / item).
[0107] To improve the comfort of item transitions, when the distance exceeds a threshold, a second speed can be used to quickly scroll to the vicinity of the target item before switching to the first speed to complete the final positioning, ensuring that the target item accurately stops in the preset area. For example, when the distance is 10, the first 7 items are scrolled at high speed, and the last 3 items are scrolled at a slower speed for a smooth transition. This reduces the time spent on long-distance transitions and ensures positioning accuracy through slow scrolling at the end.
[0108] To further enhance the visibility of the target item, the system can apply styles such as highlighting the background, flashing the border, or bolding the text after the jump, making it significantly different from other items. If the target item is at the edge of the screen after the jump, such as only half of it being displayed, the system will automatically fine-tune the scroll position to ensure that it is fully displayed in the center of the screen, avoiding secondary operations by the user.
[0109] This application's embodiments ensure the accuracy of navigation targets by acquiring target item identification information, and then automatically detect the collapsed state of the target item. When it is hidden, the system actively expands the parent item and updates the display state synchronously, avoiding the inefficient operation of manually expanding level by level by the user. Simultaneously, navigation is performed based on the actual display distance between the current item and the target item. This solves the positioning error problem caused by ignoring the collapsed state in traditional navigation, and optimizes the rationality of the navigation path through dynamic adaptation of distance parameters. Ultimately, while ensuring the complete display of the target item, the smoothness of directory navigation and user experience are significantly improved. Through automated collapsed state processing and dynamic distance calculation, the accuracy and operational efficiency of directory navigation are improved.
[0110] Based on the above embodiments, this application also provides a directory entry navigation device, such as... Figure 2 As shown,
[0111] The acquisition module 201 is used to acquire the identification information of the target entry in response to a jump instruction; the jump instruction is used to indicate a jump from the current entry to the target entry;
[0112] The determining module 202 is used to determine the collapsed state of the target item; the collapsed state includes a hidden state and a displayed state;
[0113] The jump module 203 is used to expand the parent entry to which the target entry belongs and change the collapsed state of the target entry to the displayed state when the collapsed state of the target entry is the hidden state; and to jump from the current entry to the target entry according to the distance between the target entry and the current entry.
[0114] The jump module 203 is also used to jump from the current entry to the target entry when the target entry is in a displayed state and the current entry is in a collapsed state.
[0115] In one possible implementation, module 202 is specifically used for:
[0116] Based on the identification information of the target entry, the target entry is matched from the state mapping table; the state mapping table is used to record entries whose collapsed state is hidden.
[0117] If a match is successful, the folded state of the target entry is determined to be a hidden state;
[0118] If a match fails, the target entry is determined to be in a displayed state instead of a collapsed state.
[0119] In one possible implementation, jump module 203 is specifically used for:
[0120] Remove the identification information of all entries under the parent entry of the target entry from the state mapping table, and restore the parent entry of the target entry from the collapsed state to the expanded state.
[0121] In one possible implementation, jump module 203 is specifically used for:
[0122] Determine the actual number of entries displayed between the target entry in the directory list and the current entry;
[0123] Jump from the current entry to the target entry based on the number of entries.
[0124] In one possible implementation, jump module 203 is specifically used for:
[0125] If the distance is less than or equal to a distance threshold, the control view scrolls from the current entry to the target entry at a first speed;
[0126] If the distance is greater than the proximity threshold, the control view scrolls from the current entry to the target entry at a second speed; the second speed is greater than the first speed.
[0127] In one possible implementation, the jump instruction is generated by at least one of the following methods:
[0128] In response to the user triggering the floating jump icon, the jump instruction is generated;
[0129] The jump instruction is generated in response to triggering the jump icon in the navigation bar;
[0130] In response to receiving a voice command indicating a jump, a jump command is generated.
[0131] In one possible implementation, the device further includes:
[0132] The folding module is used to add the identification information of all entries under the parent entry of the entry to be folded to the status mapping table in response to the folding command, and to fold the parent entry of the entry to be folded.
[0133] One possible implementation is a control device provided in this application embodiment.
[0134] The control device may include memory and a processor. The memory may be random access memory (RAM), flash memory, read-only memory (ROM), EPROM, non-volatile read-only memory (Electronic Programmable ROM), registers, hard disk, removable disk, etc.
[0135] The memory can store computer instructions. When the computer instructions stored in the memory are executed by the processor, the processor can use them to execute the navigation method for directory entries. The memory can also store data, such as preset ranges, preset thresholds, and other information involved in the above embodiments.
[0136] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape) or a semiconductor medium (e.g., solid-state disk (SSD)).
[0137] This application also provides a readable storage medium for storing the methods provided in the above embodiments. Examples include random access memory (RAM), flash memory, read-only memory (ROM), EPROM, non-volatile read-only memory (Electronic Programmable ROM), registers, hard disks, removable disks, or any other form of storage medium in the art.
[0138] In the embodiments of this application, the terms "first" and "second" (if they exist) are used only as name identifiers and do not represent the order of first and second.
[0139] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Regarding the methods disclosed in the embodiments, since they correspond to the product embodiments disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the description of the product embodiments.
[0140] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for jumping to directory entries, characterized in that, The method includes: In response to a jump instruction, the identifier information of the target entry is obtained; the jump instruction is used to indicate a jump from the current entry to the target entry; Determine the collapsed state of the target entry; the collapsed state includes a hidden state and a displayed state; When the target entry is in a hidden state, expand the parent entry to which the target entry belongs and change the target entry's collapsed state to a visible state; based on the distance between the target entry and the current entry, jump from the current entry to the target entry; When the target entry is in a displayed state while it is in a collapsed state, the user jumps from the current entry to the target entry based on the distance between the target entry and the current entry.
2. The method according to claim 1, characterized in that, Determining the folded state of the target entry includes: Based on the identification information of the target entry, the target entry is matched from the state mapping table; the state mapping table is used to record entries whose collapsed state is hidden. If a match is successful, the folded state of the target entry is determined to be a hidden state; If a match fails, the target entry is determined to be in a displayed state instead of a collapsed state.
3. The method according to claim 1, characterized in that, Expand the parent entry to which the target entry belongs, including: Remove the identification information of all entries under the parent entry of the target entry from the state mapping table, and restore the parent entry of the target entry from the collapsed state to the expanded state.
4. The method according to claim 1, characterized in that, Based on the distance between the target entry and the current entry, jump from the current entry to the target entry, including: Determine the actual number of entries displayed between the target entry in the directory list and the current entry; Jump from the current entry to the target entry based on the number of entries.
5. The method according to claim 1, characterized in that, The jump from the current entry to the target entry includes: If the distance is less than or equal to a distance threshold, the control view scrolls from the current entry to the target entry at a first speed; If the distance is greater than the proximity threshold, the control view scrolls from the current entry to the target entry at a second speed; the second speed is greater than the first speed.
6. The method according to claim 1, characterized in that, The jump instruction is generated by at least one of the following methods: In response to the user triggering the floating jump icon, the jump instruction is generated; The jump instruction is generated in response to triggering the jump icon in the navigation bar; In response to receiving a voice command indicating a jump, a jump command is generated.
7. The method according to claim 1, characterized in that, The method further includes: In response to the triggering of the collapse command, the identification information of all entries under the parent entry to which the entry to be collapsed belongs is added to the status mapping table, and the parent entry to which the entry to be collapsed belongs is collapsed and displayed.
8. A navigation device for directory entries, characterized in that, The device includes: The acquisition module is used to acquire the identification information of the target entry in response to a jump instruction; the jump instruction is used to indicate a jump from the current entry to the target entry; A determining module is used to determine the collapsed state of the target entry; the collapsed state includes a hidden state and a displayed state; The jump module is used to expand the parent entry to which the target entry belongs and change the collapsed state of the target entry to the displayed state when the target entry is in a hidden state; and to jump from the current entry to the target entry based on the distance between the target entry and the current entry. The jump module is further configured to, when the target item is in a collapsed state but in a displayed state, jump from the current item to the target item based on the distance between the target item and the current item.
9. A control device, characterized in that, It includes a processor and a memory, the memory being used to store programs, instructions, or code, and the processor being used to execute the programs, instructions, or code in the memory to perform the directory entry jump method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The system contains a computer program that is loaded by a processor to execute the directory entry jump method as described in any one of claims 1-7.
