Skip to content

Rapidly opening multiple tabs loses current working directory #2287

Description

@egmontkob

Forwarding from https://gitlab.gnome.org/chergert/ptyxis/-/issues/570, since Tilix suffers from the exact same issue.

Summary

UI bug: There's a timing issue when using CTRL+SHIFT+T to open new tabs, in that it loses the context of the 'current working directory'

This works fine if you do it slowly i.e. wait for the new tab to show the command prompt before repeating the new tab action, but otherwise, because the UI context immediately switches to the new tab, which doesn't initially have a sense of 'current directory' repeating the CTRL+SHIFT+T means that the third tab opened reverts to the default of opening a prompt in user's home directory.

Steps to Reproduce

Please list the exact steps needed to trigger the issue.

  1. Change to some directory other than home (first tab)
  2. Hit CTRL+SHIFT+T twice rapidly
  3. First 2 tabs will be in target directory, third one will be in home directory

Expected Behavior

All 3 tabs should be in the target directory

Actual Behavior

Third tab starts off in home directory


My note: Tilix is fast enough that I cannot press Ctrl+Shift+T twice rapidly enough. But the bug can easily be triggered by holding down Ctrl+Shift+T for a bit longer, or by inserting a sleep 1 at the beginning of .bashrc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions