Giter VIP home page Giter VIP logo

Comments (6)

aziz avatar aziz commented on September 14, 2024

You're right. Archived tasks will loose their connection to the parent. I'm thinking to find a way to keep the connection somehow.

One easy solution would be to fold the parent if you want to hide its children.

Hiding and showing is not an option since it's a plain text file and PlainTasks does not change the content of your file on the fly.

from plaintasks.

jiming avatar jiming commented on September 14, 2024

I see.

So if sublimetext itself support hide lines, you should be able to finish the show and hide feature very easy, right?

from plaintasks.

jiming avatar jiming commented on September 14, 2024

Hi aziz,

I just find out that SublimeText has a feature "Code Folding". The path to it is "Edit -> Code Folding -> Fold". It is similar to the Arrow fold on left bolder just like you used now. But it can simply hide selected lines, without cascade relationship. My opinion is that you can either use this feature to hide lines of completed task, or put completed tasks in very deep level, such as 9. Then you can call the fold level 9 in your plugin to hide completed tasks.

Hope it is helpful and waiting for good news from you!

Thanks,
Jiming.

from plaintasks.

aziz avatar aziz commented on September 14, 2024

folding is a viable solution but it still look ugly (since you still get ... image). it will look like this:

from plaintasks.

jiming avatar jiming commented on September 14, 2024

Yes, it is ugly. But better than loose the relationship between parent. I think you can keep current archive and add a new hide feature, like Ctrl+Shift+A to archive completed task. Ctrl+k, Ctrl+a hide completed tasks. Let user themselves to decide which one to use. What do you say?

Thanks
Jiming

from plaintasks.

vovkkk avatar vovkkk commented on September 14, 2024

#57 would resolve relations,
or you can try this plugin to fold: https://github.com/davidpeckham/FilterLines

from plaintasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.