ocranizer
ocranizer
Simple fast CLI organizer.
Installation
First make or shards build pim. Next you need to copy binary file into one of directories in PATH variable.
You can use make install or sudo cp -vn bin/pim /usr/bin.
Note: I'm not Mac user so this can be not Mac (or Unix) compatible because of user home path.
Usage
Main types - entities
Event is a time range when something occurs. It's described by time and the time defines when Event occurs.
Todo is a task which must be completed. It can be described by time. Todo can have (but not need to have) deadline - time_to and can be started after time point - time_to.
Event and Todo is an Entity.
Command parameters styles
Destructive actions
Most destructive commands are uppercase. For example if you want to search an Event you use pim -e, but if you want to add you should use uppercase E like pim -E.
Parameters
There is predefined list of possible parameters. They can be used to filter, create, update and delete depends on command.
Theese parameters are:
-nor--name- name/title-ior--id- unique identifier of anEntity-aor--from- start time-zor--to- end time-dor--day- only for filtering for particular day-por--place- place-cor--category- category, just oneStringlikework,private-gor--tags- tags,Array(String)but you should type them in oneStringseparated with coma,-cor--desc- longer description ofEntity, totally optional-uor--user- other peopleEntities-bor--url- external http link forEntity
What is an User
Imagine you have friend you often travel with. You can add his blocking events here. You can later get his all events and know when he is available.
Filter params
Parameters described above behaves differently when used in create and filter.
-nor--name- substring, ignore case-ior--id- substring, ignore case-aor--from- filter within range-zor--to- filter within range-dor--day- filter overlapping day-por--place- substring, ignore case-cor--category- exact, case-gor--tags- exact, case-cor--desc- substring, ignore case-bor--url- substring, ignore case-uor--user- described below
User filter
-u ""- default filter only ownEntity-u "rest"- filter only other (not blank) users-u "all"- show all: self and other-u "joe"- show onlyjoeentities
Create params
To create Entity you need to specify enough required parameters. Todo require only name but Event require name, time_from and time_to.
Example: pim -T "Clean room"
You can specify more information (except the id which is generated automatically).
Example: pim -T "Clean room" -c "apartment"
Repeated
By adding --monthly or --yearly you can create repeated entities. This is a new feature and interface is not fully ready yet.
Add Event
pim -E "Doctor appointment" -a "2017-02-05 12:00" -z "1 hour" -g "doctor" -c "appointment"
Result:
Doctor appointment
2017-02-05 12:00 -> 2017-02-05 13:00
category: appointment
tags: doctor
Id: 20170124131927368
Everything is stored at ~/.ocranizer.yml
HTML output
Just add -H and it will generate HTML calendar and open it in default browser. Calendar file is located at ~/.ocranizer.yml.html.
Help
pim -h will tell you about all possible parameters.
Human time form
Please check here for more details.
You can use absolute values like:
2017-10-10for full day,10-10for full day with current or next year (no past time)2017-10-10 12:40for exact,13:40for current day
or relative values like:
1 week- 1 week from now or event's time fromprev 1 hour- 1 hour before
Development
- Not allow create entity when
time_from>time_to -
time_toif typed as hours uses date fromtime_from - Interpret fullday as 0:00 - 23:59
- Show entity id at details
- TEST, TEST, TEST!!!
- Test command parser
- Delete action
- Postpone - update but easier
- Add search macros, ex:
work_todayshow all withworkcategory and proper time ranges,incomingwith entities till2 days - Add create macros
- Update
idto make it always unique forEventandTodo - Add events, todos using command line interface
- Inteligent time parser: full, partial, words like tommorow, +1 day, +1 week
- List of upcoming events
- Edit existing events
- Integrare output with remind
- Render HTML output
- Saving with backup
- Add limit filter
- Add
priority: low, regular, urgent, important - When adding full day event assume
time_tois end of day oftime_fromif missing - Repeated entities
- Auto send calendars HTML via email
Contributing
- Fork it ( https://github.com/akwiatkowski/ocranizer/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- akwiatkowski Aleksander Kwiatkowski - creator, maintainer
ocranizer
- 8
- 2
- 1
- 0
- 0
- over 8 years ago
- January 17, 2017
MIT License
Sat, 01 Nov 2025 22:52:46 GMT