Commit graph

16 commits

Author SHA1 Message Date
Petar Kapriš 9fa8301ba6 Split project into several packages
The source code of the project has been split up into several packages,
each one pertaining to different aspects of the system. Currently there
is a main package, a drw package, containing all the funcitons
regarding the drawing of the calendar, and a util package containing
time-related project specific functions and general utility functions
for the project.
There are plenty of subsystems in the program which have not even been
developed yet, and new packages will be made pertaining to those. The
package tree may be heavily reorganized in the near future.
2021-11-30 20:14:45 +01:00
Petar Kapriš 1a194cc368 Make surrounding whitespace in centeredText the same style 2021-11-30 20:14:45 +01:00
Petar Kapriš ce66ae9f21 Enable motion with HJKL keys
This commit will enable the user of the program to navigate the dates
within a given year, using vi-like keybindings. The movement between
months should act intuitively across different sizes of the terminal.
2021-11-30 19:58:46 +01:00
Petar Kapriš 394c8f9b9d Make monthsWide and monthsHigh global variables 2021-11-30 07:53:27 +01:00
Petar Kapriš 9dd937ad68 Enable marker for the current day in the calendar 2021-11-30 07:52:05 +01:00
Petar Kapriš b99fbda938 Rename constant month{Height,Width} to maxMonth{Height,Width} 2021-11-30 07:48:51 +01:00
Petar Kapriš 72916575bd Reformat with gofmt 2021-09-04 11:50:23 +02:00
Petar Kapriš 66695e069b Enable screen resizing 2021-08-28 09:39:28 +02:00
Petar Kapriš b7f2276d18 Add function drawWall() 2021-08-27 17:39:05 +02:00
Petar Kapriš 4d0c4c78a6 Add explanatory comment for monthHeight 2021-08-27 17:38:32 +02:00
Petar Kapriš a7dbe96dc8 Add titleHeight 2021-08-27 17:37:38 +02:00
Petar Kapriš 0aa9e96ba3 Add largeGap 2021-08-27 12:10:31 +02:00
Petar Kapriš 7dd9ddd810 Rename gapSize to smallGap 2021-08-27 12:05:06 +02:00
Petar Kapriš 357757e479 Add function wrappedText 2021-08-25 18:33:47 +02:00
Petar Kapriš 593900c788 Add min function 2021-08-25 18:31:01 +02:00
Petar Kapriš e41bb4d8ae Initial commit 2021-07-20 23:22:07 +02:00