Giter VIP home page Giter VIP logo

Comments (3)

TBurchfield avatar TBurchfield commented on September 15, 2024

#2 has been implemented and closed.

from cursello.

TBurchfield avatar TBurchfield commented on September 15, 2024

the main work on this PR will likely be in saving/reading from disk. Right now, the board is always stored as items.yaml in ~/.config/cursello/ (See modules/storage.py). We want the ability to store multiple boards here, accessed by name. When trying to open a board named my_board, for instance, cursello might look for my_board.yaml (also in ~/.config/cursello/) before opening a blank version. Also, when saving, cursello will save the board as the name it was opened (my_board.yaml), unless specified otherwise.

This made me realize we haven't addressed what ought happen when a user runs cursello with no additional arguments. Until now, we've only had one board to worry about, but multiple boards introduces the question of what ought happen when no arguments are passed to cursello.

Here is my envisioned usage:

$ ./cursello.py - opens ~/.config/cursello/items.yaml as a somewhat "default" board.

$ ./cursello.py my_board - opens ~/.config/cursello/my_board.yaml.

from cursello.

TBurchfield avatar TBurchfield commented on September 15, 2024

Additionally, cursello should remember the name of the board it is working on. I think we should implement a w command for manual saving. This, and the current method of saving at quit should default to saving the board from the file it was opened as (for example, w board2.yaml writes to ~/.configs/cursello/board2.yaml).

I think w should open a barInput that says something along the lines of "Enter the name for this board to be saved as, or leave blank to use put_board_name_here:"

Also, we should have a command to open a board by name from ~/.config/cursello/`. This is the "command to switch to a new board" I mentioned. Again, if you have unsaved changes, it prompts before opening. I haven't decided what letter this should correspond to. Whoever PR's this one can decide something intuitive, and we can tweak it later if need be.

Thoughts on this usage of w command? Thoughts on my earlier comment's command line usage? Thoughts on the open command?

from cursello.

Related Issues (9)

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.