Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminator ignores working directory when two layouts are opened. #976

Open
heit0r opened this issue Dec 28, 2024 · 0 comments
Open

Terminator ignores working directory when two layouts are opened. #976

heit0r opened this issue Dec 28, 2024 · 0 comments

Comments

@heit0r
Copy link

heit0r commented Dec 28, 2024

Describe the bug
I always leave one window opened with 2 terminals vertically tiled, one for user and another for superuser:

___________________
|         |       |
| 1. user | 2. su |
|         |       |
|_________|_______|

I often open a layout in another window with nvim alongside with fish and ipython tile like this:

_______________________________
|                |            |
|                | 2. fish    |
|   1. Neovim    |____________|
|                |            |
|                | 3. ipython |
|                |            |
|________________|____________|

It happens that the working directory only works for buffer 1 (Neovim), but buffer 2 (fish) in this layout only opens at ~/ despite the . at working directory.

To Reproduce

Commands I use:

terminator --icon terminus --maximize --layout=term
cd /other/path/
terminator --icon nvim --maximize --layout=neo

Also with Thunar's custom actions for Nvim to appear at the context menu.

Expected behavior
For the second buffer (or every buffer?) to stay in whatever directory I open this layout. Which happens only if I have one terminator layout opened. In this case, buffer 1 and 2 works at the same directory I opened this layout. Otherwise, it always stays at ~/ and I have to manually cd /directory/i/want at buffer 2 for every layout I open.

[global_config]
  borderless = True
  scroll_tabbar = True
  homogeneous_tabbar = False
  inactive_color_offset = 0.6095238095238096
  ask_before_closing = never
[keybindings]
  cycle_next = <Primary>Tab
  cycle_prev = <Primary><Shift>Tab
[profiles]
  [[default]]
    icon_bell = False
    background_color = "#1a1b26"
    background_darkness = 0.75
    background_type = transparent
    cursor_shape = ibeam
    cursor_fg_color = "#9a9996"
    cursor_bg_color = "#aaaaaa"
    font = MonaspiceNe Nerd Font Mono Medium 11
    foreground_color = "#55ffff"
    show_titlebar = False
    scrollbar_position = hidden
    scrollback_infinite = True
    palette = "#3d3846:#f66151:#55ff55:#f66151:#5555ff:#ff55ff:#55ffff:#ffffff:#77767b:#ed333b:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa"
    use_system_font = False
    copy_on_selection = True
    title_transmit_bg_color = "#03394f"
    title_receive_fg_color = "#77767b"
    title_receive_bg_color = "#000000"
    title_inactive_fg_color = "#77767b"
    title_inactive_bg_color = "#000000"
[layouts]
  [[default]]
    [[[child0]]]
      type = Window
      parent = ""
      order = 0
      position = 0:0
      maximised = True
      fullscreen = False
      size = 1280, 698
      last_active_term = a1349e34-3f09-47ff-962c-7f19a47faf9f
      last_active_window = True
    [[[terminal1]]]
      type = Terminal
      parent = child0
      order = 0
      profile = default
      uuid = a1349e34-3f09-47ff-962c-7f19a47faf9f
  [[term]]
    [[[child0]]]
      type = Window
      parent = ""
      order = 0
      position = 0:0
      maximised = True
      fullscreen = False
      size = 1280, 698
      title = ""
      last_active_term = 26277af7-91fd-4725-bd54-d79e4b8a5114
      last_active_window = True
    [[[child1]]]
      type = HPaned
      parent = child0
      order = 0
      position = 638
      ratio = 0.5
    [[[terminal2]]]
      type = Terminal
      parent = child1
      order = 0
      profile = default
      uuid = a6736aa4-77d8-425a-b3e3-0f901ebea869
      command = ""
    [[[terminal3]]]
      type = Terminal
      parent = child1
      order = 1
      profile = default
      uuid = 26277af7-91fd-4725-bd54-d79e4b8a5114
      command = su
  [[neo]]
    [[[child0]]]
      type = Window
      parent = ""
      order = 0
      position = 0:0
      maximised = True
      fullscreen = False
      size = 1280, 698
      title = Neovim
      last_active_term = a1349e34-3f09-47ff-962c-7f19a47faf9f
      last_active_window = True
    [[[child1]]]
      type = HPaned
      parent = child0
      order = 0
      position = 936
      ratio = 0.7341176470588235
    [[[terminal2]]]
      type = Terminal
      parent = child1
      order = 0
      profile = default
      uuid = a1349e34-3f09-47ff-962c-7f19a47faf9f
      command = nvim
    [[[child3]]]
      type = VPaned
      parent = child1
      order = 1
      position = 346
      ratio = 0.49927849927849927
    [[[terminal4]]]
      type = Terminal
      parent = child3
      order = 0
      profile = default
      uuid = bf4963b5-00e8-481e-868b-687fe4fb27ca
      directory = .
    [[[terminal5]]]
      type = Terminal
      parent = child3
      order = 1
      profile = default
      uuid = ba701298-dd2b-4199-93b7-a93244f052fe
      command = ipython --no-banner
[plugins]

Desktop (please complete the following information):

  • Linux A410 6.6.65-1-MANJARO # 1 SMP PREEMPT_DYNAMIC Wed Dec 11 22:24:04 UTC 2024 x86_64 GNU/Linux
  • Version Yonada 24.2.1
  • Display Technology: X11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant