-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtodo.ps1xml
32 lines (31 loc) · 829 Bytes
/
todo.ps1xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
<View>
<Name>TaskList-Custom</Name>
<ViewSelectedBy>
<TypeName>todotxtlib.net.Task</TypeName>
</ViewSelectedBy>
<CustomControl>
<CustomEntries>
<CustomEntry>
<CustomItem>
<ExpressionBinding>
<ScriptBlock>'{0,3}' -f $_.ItemNumber</ScriptBlock>
</ExpressionBinding>
<Text> </Text>
<ExpressionBinding>
<ScriptBlock>
$w = $_.Raw.Length;
$e = "";
if($w -gt ([console]::BufferWidth - 9)){$e = "..."; $w = ([console]::BufferWidth - 9);}
$_.Raw.Substring(0, $w) + $e;
</ScriptBlock>
</ExpressionBinding>
</CustomItem>
</CustomEntry>
</CustomEntries>
</CustomControl>
</View>
</ViewDefinitions>
</Configuration>