Comments (6)
So, in this issue, we need to use
humanize.naturaltime(currentdate-date)
for all date formats?
Anything else need to be considered in this one?
from todoman.
@Swati4star It's just an idea, I don't think @hobarrera has decided on details or whether it's a good one in the first place.
from todoman.
We probably need:
- A flag as mentioned above to toggle this.
- We probably want to override he default formatter.
- A setting in configuration to make this the default.
We probably want to use the humanize library since all higher level ones just wrap around that one.
from todoman.
Do we need to mention humanize time format as default in config file. Also is there a specific format that humanize use? like
date_format = %Y-%m-%d
time_format = %H:%M
What I am getting from this is..
If humanize flag is set, display date in that format, else what is there in config file. Is it fine?
from todoman.
@Swati4star Yes, I think this only affects output, in the way you describe. Though I have been wrong about @hobarrera's ideas before :)
from todoman.
Do we need to mention humanize time format as default in config file.
No, humanized dates should not be the default.
If humanize flag is set, display date in that format, else what is there in config file. Is it fine?
Yes, and I'd do this subclassing the default formatter, and using that if the flag is set (similar to --porcelain
).
This flag does not affect input/parsing.
from todoman.
Related Issues (20)
- Docs are filing to build on readthedocs HOT 1
- Docs are filing to build on readthedocs HOT 1
- Navigating tasks with vim keys HOT 6
- todoman 4.3.0 not on pypi HOT 4
- 4.3.0: test_ctrl_c_clears fails HOT 3
- Click repl doesn't show up HOT 2
- categories with diacritics not handled well HOT 5
- Subcommand to get current configuration parameters HOT 1
- Can't run v4.3.2 on Slackware64-15.0 HOT 2
- Please release 4.4.0 at PyPi HOT 2
- Tasks template && time tracking HOT 1
- Flags in config file donβt apply to default commands HOT 1
- crash when creating new todo and reading description from stdin HOT 2
- Show one-line summaries when deleting multiple items
- Remember latest creation
- `todo categories` should show all categories
- Rethink flushing
- Exclude fields in list command HOT 1
- Feature request: Any plans on adding recurring tasks? HOT 2
- Allow specifying default sort method in config file HOT 2
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 todoman.