Comments (7)
Hi!
It was me who implemented cancelled task functionality; and I must admit that archive feature was missed deliberately.
I understand there might be different workflows and meanings, but, in my view, cancelled task doesn't means 'basta', it means that currently or in near future this can't be done or doesn't need to be done, but sometime or in some specific context cancelled task might be done.
So I don't want to say that functionality is needless, I'm saying that without ability to see from which project cancelled task was, archiving those task is kinda pointless, isn't it?
There is plan for this: 'in archive list, prefix task with project name, add specific scope for project prefixes'. So let's just wait until this will be implemented, shall we?
from plaintasks.
I merged this pull request cause for now it fills buggy that archive command can not archive cancelled tasks.
But also agree with @vovkkk, when I've got some time to add some semantic meaning to done and cancelled tasks then we can archive them to separate projects. done tasks can go to the archive project at the bottom while cancelled tasks can go to another project name "Pending" at the bottom their respective project.
It feels like we need some sort of testing, in order to be able more features at the moment or we're gonna break things here and there all the time. it started as simple plugin with 3 commands and now people are asking for more and more features. I'll to keep it clean and simple but some of those great ideas are hard to resist.
from plaintasks.
Okay, after all, I'm even glad you merged it, so we will move forward faster :)
@hindol did you try to archive when you have few done and cancelled tasks?
✔ 1 @done (12-11-24 18:29)
✘ 2 @cancelled (12-11-24 18:29)
✔ 3 @done (12-11-24 18:29)
✘ 4 @cancelled (12-11-24 18:29)
For me it ruin almost entire list...
I thought about this for removing:
tfr = done_tasks + canc_tasks
tfr.sort()
for t in reversed(tfr):
self.view.erase(edit, self.view.full_line(t))
But it brings another bug: unnecessary line breaks...
upd: I mean unnecessary line breaks in archive list after archiving another task(s).
from plaintasks.
@vovkkk Unfortunately, you are right. Things do break when I have a few done and a few cancelled tasks mixed together. I have created a fix for the same. Will be sending _you_ a pull request first. Test and tell me if it still has problems.
from plaintasks.
@hindol I'm actually confused where better to comment :) (there're three places now: two pr's and this thread)
Yes, it seems still has problems:
Try to create new list, new task, mark as done, archive.
For me it doesn't run archive command.
If you already have archive list and few archivable tasks it demands to press ctrl+shift+a twice (at least) to archive them all.
Also, I think it was actually better to place tuples in two different lists, so we had more flexibility, interact with them separately if it will be necessary in future (of course, I may be wrong).
from plaintasks.
@vovkkk In the earlier approach where you merged two lists and sorted, I am not able to find _unnecessary line breaks_. How do I reproduce the problem?
For me, this version works without problems for both newly created lists and old lists.
from plaintasks.
For me, this version works without problems for both newly created lists and old lists.
Yeah, me too! Cheerio!
About line breaks - nevermind, I just didn't change adding, so it silly added both done_tasks and canc_tasks even if one of them was empty.
from plaintasks.
Related Issues (20)
- Sublime Version 4 has a display problem HOT 2
- Sublime Version 4 has a display problem
- Auto completion with `tab` doesn't work? HOT 1
- [Feature Request] Complex export system
- Hide date(s)
- Can I have different theme for each .todo files? HOT 1
- Autocomlete on s produce sftp instead @started(21-10-29 14:50) HOT 1
- Color of checkmark changed from green to violet ✔ HOT 1
- ClearType
- Can new types of status be added for the task? HOT 3
- Archiving tasks with indented notes underneath removes indentation HOT 5
- Alt + o shortcut does not jump to text
- Broken for Windows 11 / Sublime Text 4? Hotkeys not working HOT 2
- Open Link/File (Alt+O) does not work and throw errors
- Different syntax hilighting for started tasks
- Was able to archive in org-mode once, now errored out
- Archive in Org-Mode: add an option to put the archive file in a subfolder
- Archiving all tasks in a folded project concatenates the next project to the first
- Option to fold the Archive section
- Customizable Archive Subfolder for Enhanced Organization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plaintasks.