File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 13
13
<PackageProjectUrl >https://github.com/rprouse/guppi</PackageProjectUrl >
14
14
<RepositoryUrl >https://github.com/rprouse/guppi</RepositoryUrl >
15
15
<PackageId >dotnet-guppi</PackageId >
16
- <Version >6.3.1 </Version >
16
+ <Version >6.3.2 </Version >
17
17
<PackAsTool >true</PackAsTool >
18
18
<ToolCommandName >guppi</ToolCommandName >
19
19
<PackageOutputPath >./nupkg</PackageOutputPath >
Original file line number Diff line number Diff line change 2
2
"profiles" : {
3
3
"Guppi.Console" : {
4
4
"commandName" : " Project" ,
5
- "commandLineArgs" : " bills all "
5
+ "commandLineArgs" : " todo sync "
6
6
}
7
7
}
8
8
}
Original file line number Diff line number Diff line change @@ -95,7 +95,16 @@ public async Task Sync()
95
95
. ToList ( ) ;
96
96
foreach ( var task in notLocal )
97
97
{
98
- string taskStr = $ "{ task . Updated . GetRfc3339Date ( ) . ToString ( "yyyy-MM-dd" ) } { task . Title } ";
98
+ // Pull the priority out of the title
99
+ string priority = string . Empty ;
100
+ string title = task . Title ;
101
+ if ( title . Length >= 3 && title [ 0 ] == '(' && title [ 2 ] == ')' && title [ 3 ] == ' ' )
102
+ {
103
+ priority = title . Substring ( 0 , 4 ) ;
104
+ title = title . Substring ( 3 ) . Trim ( ) ;
105
+ }
106
+
107
+ string taskStr = $ "{ priority } { task . Updated . GetRfc3339Date ( ) . ToString ( "yyyy-MM-dd" ) } { title } ";
99
108
if ( ! string . IsNullOrEmpty ( task . Due ) )
100
109
{
101
110
taskStr += $ " due:{ task . Due } ";
You can’t perform that action at this time.
0 commit comments