chore: generate
This commit is contained in:
parent
106f8e94d6
commit
21a644fef5
12 changed files with 40 additions and 50 deletions
|
|
@ -16,9 +16,7 @@ function Directory(props: { api: TuiPluginApi }) {
|
|||
if (!selected || selected.type === "new") return
|
||||
const out = abbreviateHome(selected.directory, paths.home)
|
||||
const branch =
|
||||
selected.directory === (props.api.state.path.directory || paths.cwd)
|
||||
? props.api.state.vcs?.branch
|
||||
: undefined
|
||||
selected.directory === (props.api.state.path.directory || paths.cwd) ? props.api.state.vcs?.branch : undefined
|
||||
if (branch) return out + ":" + branch
|
||||
return out
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue