@@ -32,49 +32,49 @@ function Attach:_build_menu()
3232 })
3333
3434 menu :add_option ({
35- label = ' Select a file and attach it to the task.' ,
35+ label = ' Attach a file to this task.' ,
3636 key = ' a' ,
3737 action = function ()
3838 return self :attach ()
3939 end ,
4040 })
4141 menu :add_option ({
42- label = ' Attach a file using copy method .' ,
42+ label = ' Attach a file by copying it .' ,
4343 key = ' c' ,
4444 action = function ()
4545 return self :attach_cp ()
4646 end ,
4747 })
4848 menu :add_option ({
49- label = ' Attach a file using move method .' ,
49+ label = ' Attach a file by moving it .' ,
5050 key = ' m' ,
5151 action = function ()
5252 return self :attach_mv ()
5353 end ,
5454 })
5555 menu :add_option ({
56- label = ' Attach a file using link method. ' ,
56+ label = ' Attach a file by hard-linking it ' ,
5757 key = ' l' ,
5858 action = function ()
5959 return self :attach_ln ()
6060 end ,
6161 })
6262 menu :add_option ({
63- label = ' Attach a file using symbolic-link method .' ,
63+ label = ' Attach a file by symbolic-linking it .' ,
6464 key = ' y' ,
6565 action = function ()
6666 return self :attach_lns ()
6767 end ,
6868 })
6969 menu :add_option ({
70- label = ' Attach a file from URL (downloading it) .' ,
70+ label = ' Attach a file by download from URL .' ,
7171 key = ' u' ,
7272 action = function ()
7373 return self :attach_url ()
7474 end ,
7575 })
7676 menu :add_option ({
77- label = ' Select a buffer and attach its contents to the task. ' ,
77+ label = " Attach a buffer's contents. " ,
7878 key = ' b' ,
7979 action = function ()
8080 return self :attach_buffer ()
@@ -87,69 +87,71 @@ function Attach:_build_menu()
8787 return self :attach_new ()
8888 end ,
8989 })
90+ menu :add_separator ({ length = # menu .title })
9091 menu :add_option ({
91- label = ' Synchronize current node with its attachment directory.' ,
92- key = ' z' ,
93- action = function ()
94- return self :sync ()
95- end ,
96- })
97- menu :add_option ({
98- label = " Open current node's attachments." ,
92+ label = ' Open an attachment externally.' ,
9993 key = ' o' ,
10094 action = function ()
10195 return self :open ()
10296 end ,
10397 })
10498 menu :add_option ({
105- label = " Open current node's attachments in vim." ,
99+ label = ' Open an attachment in vim.' ,
106100 key = ' O' ,
107101 action = function ()
108102 return self :open_in_vim ()
109103 end ,
110104 })
111105 menu :add_option ({
112- label = " Open current node's attachment directory. Create if missing. " ,
106+ label = ' Open the attachment directory externally. ' ,
113107 key = ' f' ,
114108 action = function ()
115109 return self :reveal ()
116110 end ,
117111 })
118112 menu :add_option ({
119- label = " Open current node's attachment directory in vim." ,
113+ label = ' Open the attachment directory in vim.' ,
120114 key = ' F' ,
121115 action = function ()
122116 return self :reveal_nvim ()
123117 end ,
124118 })
119+ menu :add_separator ({ length = # menu .title })
125120 menu :add_option ({
126- label = ' Select and delete one attachment' ,
121+ label = ' Delete an attachment' ,
127122 key = ' d' ,
128123 action = function ()
129124 return self :delete_one ()
130125 end ,
131126 })
132127 menu :add_option ({
133- label = ' Delete all attachments of the current node .' ,
128+ label = ' Delete all attachments.' ,
134129 key = ' D' ,
135130 action = function ()
136131 return self :delete_all ()
137132 end ,
138133 })
139134 menu :add_option ({
140- label = ' Set specific attachment directory for current node .' ,
135+ label = ' Set specific attachment directory for this task .' ,
141136 key = ' s' ,
142137 action = function ()
143138 return self :set_directory ()
144139 end ,
145140 })
146141 menu :add_option ({
147- label = ' Unset specific attachment directory for current node .' ,
142+ label = ' Unset specific attachment directory for this task .' ,
148143 key = ' S' ,
149144 action = function ()
150145 return self :unset_directory ()
151146 end ,
152147 })
148+ menu :add_option ({
149+ label = ' Synchronize this task with its attachment directory.' ,
150+ key = ' z' ,
151+ action = function ()
152+ return self :sync ()
153+ end ,
154+ })
153155 menu :add_option ({ label = ' Quit' , key = ' q' })
154156 menu :add_separator ({ icon = ' ' , length = 1 })
155157
0 commit comments