pi-powerline 0.4.1 → 0.4.2
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.
- package/header.ts +6 -1
- package/package.json +1 -1
package/header.ts
CHANGED
|
@@ -121,6 +121,10 @@ function formatReasonStatus(theme: Theme, reason: SessionStartEvent['reason']):
|
|
|
121
121
|
return theme.fg('success', 'Reloaded');
|
|
122
122
|
case 'new':
|
|
123
123
|
return theme.fg('success', 'New Session Started');
|
|
124
|
+
case 'resume':
|
|
125
|
+
return theme.fg('success', 'Session Resumed');
|
|
126
|
+
case 'fork':
|
|
127
|
+
return theme.fg('success', 'Session Forked');
|
|
124
128
|
default:
|
|
125
129
|
return theme.fg('dim', reason);
|
|
126
130
|
}
|
|
@@ -182,7 +186,7 @@ function renderLogo(
|
|
|
182
186
|
...centerWrappedLines(formatReasonStatus(theme, reason), width),
|
|
183
187
|
];
|
|
184
188
|
|
|
185
|
-
if (!info) return result;
|
|
189
|
+
if (!info) return [...result, ''];
|
|
186
190
|
|
|
187
191
|
const counts = [
|
|
188
192
|
`context: ${info.contextCount}`,
|
|
@@ -210,6 +214,7 @@ function renderLogo(
|
|
|
210
214
|
),
|
|
211
215
|
'',
|
|
212
216
|
...renderInfoSection(theme, 'Extensions', info.extensions, width),
|
|
217
|
+
'',
|
|
213
218
|
];
|
|
214
219
|
}
|
|
215
220
|
|
package/package.json
CHANGED