@@ -23,9 +23,9 @@ def __init__(self, command: RemoteSubCommand, remote: str, url_or_path: str):
2323 self .down_shift = m .DOWN * 0.5
2424
2525 self .cmd += f"{ type (self ).__name__ .lower ()} "
26- if self .command == RemoteSubCommand .ADD :
26+ if self .command in ( RemoteSubCommand .ADD , RemoteSubCommand . RENAME , RemoteSubCommand . SET_URL ) :
2727 self .cmd += f" { self .command .value } { self .remote } { self .url_or_path } "
28- elif self .command == RemoteSubCommand .REMOVE :
28+ elif self .command in ( RemoteSubCommand .REMOVE , RemoteSubCommand . GET_URL ) :
2929 self .cmd += f" { self .command .value } { self .remote } "
3030
3131 def construct (self ):
@@ -89,9 +89,10 @@ def add_details(self):
8989 self .last_element = self .config_text
9090
9191 if settings .animate :
92- self .play (
93- m .AddTextLetterByLetter (cmd_text , time_per_char = self .time_per_char )
94- )
92+ if settings .show_command_as_title :
93+ self .play (
94+ m .AddTextLetterByLetter (cmd_text , time_per_char = self .time_per_char )
95+ )
9596 self .play (m .Create (self .project_root , time_per_char = self .time_per_char ))
9697 self .play (
9798 m .AddTextLetterByLetter (
@@ -107,7 +108,8 @@ def add_details(self):
107108 )
108109 )
109110 else :
110- self .add (cmd_text )
111+ if settings .show_command_as_title :
112+ self .add (cmd_text )
111113 self .add (self .project_root )
112114 self .add (project_root_text )
113115 self .add (dot_git_text )
@@ -215,7 +217,8 @@ def add_details(self):
215217 sys .exit (1 )
216218 self .render_remote_data ()
217219
218- self .toFadeOut .add (cmd_text )
220+ if settings .show_command_as_title :
221+ self .toFadeOut .add (cmd_text )
219222 self .toFadeOut .add (self .project_root )
220223 self .toFadeOut .add (project_root_text )
221224 self .toFadeOut .add (dot_git_text )
0 commit comments