镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

✨ Navigate back and forward through history of viewed tabs #1109

Closed

Description

@austincondiff

Is your feature request related to a problem? Please describe.

Allow user to be able to navigate back and forward through their navigation history

Describe the solution you'd like

As the user clicks through to various files/tabs, we want to allow the user to navigate through their view history back and forward.

Additional context

image

Activity

  1. changed the title [-]✨ Navigate back and forward through active tab history[/-] [+]✨ Navigate back and forward through history of viewed tabs[/+] on Mar 5, 2023
  2. Wouter01 commented on Mar 5, 2023

    @Wouter01
    Member

    I've added the following rules regarding the adding/removing of tabs to the history (in #1080).
    I'm trying to match Xcode as close as possible, but I may be off by a bit so these rules might need to change a bit.

    The history is represented as a stack (actually a deque, but I'll use a stack here as it's easier to explain). The last item on the stack is the last opened file.

    1. When a new tab is opened, push it on the stack.
    2. When the selected tab is closed, push the newly selected tab on the stack.
    3. When an unselected tab is closed, push it on the stack and push the newly selected tab on the stack.
    4. When a tab is selected, remove all tabs higher on the stack (represented by the "forward" arrow) and push the selected tab on the stack.
  3. austincondiff commented on Mar 5, 2023

    @austincondiff
    CollaboratorAuthor

    Thanks for laying this out and thinking this through @Wouter01, this makes a lot of sense.

  4. moved this from 🏃‍♂️ In Progress to 👀 In Review in CodeEdit Projecton Mar 5, 2023
  5. linked a pull request that will close this issueSplitview #1080on Mar 5, 2023
  6. moved this from 👀 In Review to 🏁 Complete in CodeEdit Projecton Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions