forestui 0.9.8__py3-none-any.whl → 0.9.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
forestui/app.py CHANGED
@@ -784,13 +784,13 @@ class ForestApp(App[None]):
784
784
  return repo.name
785
785
  return None
786
786
 
787
- def _get_claude_window_name(self, path: str) -> str:
788
- """Get the window name for Claude sessions: repo:branch format."""
787
+ def _get_tmux_window_name(self, path: str) -> str:
788
+ """Get the window name for Claude sessions: repo:worktree format."""
789
789
  # Check worktrees first
790
790
  for repo in self._state.repositories:
791
791
  for worktree in repo.worktrees:
792
792
  if worktree.path == path:
793
- return f"{repo.name}:{worktree.branch}"
793
+ return f"{repo.name}:{worktree.name}"
794
794
  # Check if it's the repository source path
795
795
  if repo.source_path == path:
796
796
  return repo.name
@@ -804,7 +804,7 @@ class ForestApp(App[None]):
804
804
  if self._tmux_service.is_inside_tmux and self._tmux_service.is_tui_editor(
805
805
  editor
806
806
  ):
807
- name = self._get_claude_window_name(path)
807
+ name = self._get_tmux_window_name(path)
808
808
  if self._tmux_service.create_editor_window(name, path, editor):
809
809
  self.notify(f"Opened {editor} in edit:{name}")
810
810
  return
@@ -824,7 +824,7 @@ class ForestApp(App[None]):
824
824
 
825
825
  def _open_in_terminal(self, path: str) -> None:
826
826
  """Open path in a tmux terminal window."""
827
- name = self._get_claude_window_name(path)
827
+ name = self._get_tmux_window_name(path)
828
828
  if self._tmux_service.create_shell_window(name, path):
829
829
  self.notify(f"Opened terminal in term:{name}")
830
830
  else:
@@ -832,7 +832,7 @@ class ForestApp(App[None]):
832
832
 
833
833
  def _open_in_file_manager(self, path: str) -> None:
834
834
  """Open path in Midnight Commander (mc) in a tmux window."""
835
- name = self._get_claude_window_name(path)
835
+ name = self._get_tmux_window_name(path)
836
836
  if self._tmux_service.create_mc_window(name, path):
837
837
  self.notify(f"Opened mc in files:{name}")
838
838
  else:
@@ -922,7 +922,7 @@ class ForestApp(App[None]):
922
922
 
923
923
  def _start_claude_session(self, path: str, yolo: bool = False) -> None:
924
924
  """Start a new Claude session in a tmux window."""
925
- name = self._get_claude_window_name(path)
925
+ name = self._get_tmux_window_name(path)
926
926
  custom_command = self._resolve_claude_command(path)
927
927
  window_name = self._tmux_service.create_claude_window(
928
928
  name, path, yolo=yolo, custom_command=custom_command
@@ -937,7 +937,7 @@ class ForestApp(App[None]):
937
937
  self, session_id: str, path: str, yolo: bool = False
938
938
  ) -> None:
939
939
  """Continue an existing Claude session in a tmux window."""
940
- name = self._get_claude_window_name(path)
940
+ name = self._get_tmux_window_name(path)
941
941
  custom_command = self._resolve_claude_command(path)
942
942
  window_name = self._tmux_service.create_claude_window(
943
943
  name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forestui
3
- Version: 0.9.8
3
+ Version: 0.9.9
4
4
  Summary: A Terminal UI for managing Git worktrees
5
5
  Author: cadu
6
6
  Keywords: git,terminal,textual,tui,worktree
@@ -1,6 +1,6 @@
1
1
  forestui/__init__.py,sha256=__8Am4B3qZObWoxSf5xL066vcEvEr5bW-9_2B33v0YI,286
2
2
  forestui/__main__.py,sha256=nDdStXHt-5rnJh-nihdYReIx0MlTOvtNVwu4HhNbPNM,102
3
- forestui/app.py,sha256=sJqSTydmirHzHd8Ousg36L3tFaFfazwNEmkInBsMjU8,39404
3
+ forestui/app.py,sha256=SGHIc4D8JCL03bGB5f4yOQXB--8lNSsKF9srvIA0MQ8,39392
4
4
  forestui/cli.py,sha256=41Bn3OmGRIEjJpiMZL3puncjgVpb0wqPPrf9ccBixG8,4921
5
5
  forestui/models.py,sha256=vSeGOis6kdxJDV7720U-X0tACTJQkDnMY9WXYUAJsuA,6167
6
6
  forestui/state.py,sha256=x54bDbYZYuQa8Yv00v6AzUBiDKeP1N55sNEPcRQh6tM,8854
@@ -17,7 +17,7 @@ forestui/services/git.py,sha256=9Gu_yawmAckhBkepkNID80I_r4bFMqqs9IbTjT6VY4Q,9165
17
17
  forestui/services/github.py,sha256=jZF0iYDL4iZHarXC5zYfqLhuyUDiP_VsUwP63Z7cSt8,8156
18
18
  forestui/services/settings.py,sha256=j7PgYMoCaTv4moakNU2Uo75gMvezyYsmPpBV71-4Uec,2608
19
19
  forestui/services/tmux.py,sha256=WPTm0JUV9wGbXo70iwW1l3gcjqlZUnwWO_W7whtC_Jg,9715
20
- forestui-0.9.8.dist-info/METADATA,sha256=_NZUMhg-t-6HgZMILflsDb7J_3DBZjlFMOchEg1f0do,4829
21
- forestui-0.9.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
22
- forestui-0.9.8.dist-info/entry_points.txt,sha256=ifci7XODOi-Wmgal3AP-wCbNmsU7a2sHI-xe-def8CM,47
23
- forestui-0.9.8.dist-info/RECORD,,
20
+ forestui-0.9.9.dist-info/METADATA,sha256=4sro4krfs1aTkYAILAfl_ySqQ0DFeFBr_89uwzCPUxo,4829
21
+ forestui-0.9.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
22
+ forestui-0.9.9.dist-info/entry_points.txt,sha256=ifci7XODOi-Wmgal3AP-wCbNmsU7a2sHI-xe-def8CM,47
23
+ forestui-0.9.9.dist-info/RECORD,,