+
-
+
${getTypeIcon(item.type)} ${item.title || truncate(item.content || item.url, 30)}
+
+ ${item.url ? truncate(item.url, 50) : item.content ? truncate(item.content, 50) : item.note ? truncate(item.note, 50) : ''}
+ ${item.type === 'todo' ? `${getStatusLabelShort(item.status)} ${getPriorityLabelShort(item.priority)} ${item.due_date ? '๐
' + item.due_date : ''}` : ''}
+
-
- ${item.tags.slice(0, 3).map(t => `
${t}`).join('')}
- ${item.type === 'todo' ? `
${getStatusLabelShort(item.status)}` : ''}
-
- ${item.type === 'todo' && item.status !== 'completed' ? `
` : ''}
-
+
+ ${item.tags.slice(0, 2).map(t => `${t}`).join('')}
+
+ ${item.type === 'todo' && item.status !== 'completed' ? `` : ''}
+
@@ -766,6 +769,11 @@ function getStatusLabelShort(status) {
return labels[status] || status;
}
+function getPriorityLabelShort(priority) {
+ const labels = { low: '๐ข', medium: '๐ก', high: '๐ ', urgent: '๐ด' };
+ return labels[priority] || '';
+}
+
function getPriorityLabel(priority) {
const labels = { low: '๐ข ไฝ', medium: '๐ก ไธญ', high: '๐ ้ซ', urgent: '๐ด ็ดงๆฅ' };
return labels[priority] || priority;