aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.c
Commit message (Collapse)AuthorAgeFilesLines
* Use a global configuration variableLukas Fleischer2011-11-141-16/+15
| | | | | | | This is one of the few valid use cases for a global variable. No need to make it pseudo-local and pass it from one function to another. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* src/calcurse.c: Support count prefixes for motionsLukas Fleischer2011-10-061-19/+33
| | | | | | | | | | | | | Add a global count buffer to our main loop and pass it to keys_getch() as well as to all motion commands. This enables some fancy shortcuts: * Type "2l" to jump to the day after tomorrow. * Type "4k" (or "28l") to move forward four weeks. * Type "2$" to go to the end of next week. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Add count buffer to keys_getch()Lukas Fleischer2011-10-061-1/+1
| | | | | | | | Key commands can be prefixed with a natural number - keys_getch() will store this number in the buffer pointed to by the second parameter. Set this parameter to NULL to disable count prefixes. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Add count parameter to *_{in,de}crease()Lukas Fleischer2011-10-061-8/+8
| | | | | | | | | This allows for moving more than one item up/down. This currently isn't used anywhere but will be bound to a key with one of the following patches. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* src/calendar.c: Add a count parameter to calendar_move()Lukas Fleischer2011-10-061-6/+6
| | | | | | | | | Allows for moving more than one step forward/backward. This is not used anywhere yet but a key binding will likely be added in one of the following patches. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Avoid unnecessary window updatesLukas Fleischer2011-10-061-28/+65
| | | | | | | | Add a window bitmask to wins_update() and only update windows that might actually require an update in our main loop. This improves response times of the user interface a bit. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Refactor out storage updatesLukas Fleischer2011-10-061-45/+48
| | | | | | | Instead of using a hacky flag, simply move the storage update code to a separate function and call it when needed. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Remove temporary highlight pointersLukas Fleischer2011-10-061-27/+4
| | | | | | | | | Add an additional check to apoint_update_panel() and todo_update_panel() and only highlight currently selected items if the corresponding panel is active. This allows us to remove all the highlight pointer juggling that we used whenever the panel selection changed. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Add configuration option to run the GC on exitLukas Fleischer2011-10-051-0/+2
| | | | | | | | If "auto_gc" is enabled, the garbage collector for note files will be run on every exit. As this is an experimental feature and may cause data loss, this is disabled by default. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Declare foreground and background variables globalLukas Fleischer2011-07-211-2/+1
| | | | | | Removes the need to pass the terminal's default background color round. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Do not unnecessarily refresh in config menuLukas Fleischer2011-07-141-0/+2
| | | | | | | We don't need to refresh windows every time an unassigned key is pressed. Add a condition to skip the refresh part if that is the case. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Add key binding for pipe-item commandLukas Fleischer2011-07-071-0/+7
| | | | | | | This removes the need of reading the whole data file and find matching entries if we want to parse appointments in external programs. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Avoid redundant redraws on resizeLukas Fleischer2011-06-281-3/+9
| | | | | | | | | | Use a global flag to record whether the terminal was resized instead of redrawing everything each time a KEY_RESIZE is read. Add some additional checks to help_write_pad() as invalid actions may be passed now due to using signals instead of virtual key presses. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Update copyright notices in source files, documentation and "COPYING".Lukas Fleischer2011-04-221-1/+1
| | | | | | | | | * Update copyright dates (use 2004-2011 as date range everywhere). * Change copyright holder from "Frederic Culot" to "calcurse Development Team". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Use generic lists for todo items.Lukas Fleischer2011-04-191-0/+1
| | | | | | | Use the new generic list implementation instead of "next" pointers in todo items. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Use generic lists for events.Lukas Fleischer2011-04-191-0/+3
| | | | | | | Use the new generic list implementation instead of those insane "next" pointers in events. Includes some cleanups. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Overall indentation fixes.Lukas Fleischer2011-03-141-272/+272
| | | | | | | Use spaces instead of tabs for source code indentation only, strip trailing whitespaces from lines. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Update website links to match the new URL.Lukas Fleischer2011-03-041-1/+1
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Update mail addresses to match the new mailing lists.Lukas Fleischer2011-03-041-1/+1
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Remove CVS "$Id" headers.Lukas Fleischer2011-03-031-2/+0
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Fixed file permissions.Lukas Fleischer2011-03-031-0/+0
|
* Work on sidebar width user-customization.Frederic Culot2010-03-201-1/+5
|
* All headers gathered into a single one. Typedefs suppressed.Frederic Culot2010-03-201-20/+5
|
* Work on implementing the weekly calendar view.Frederic Culot2009-08-241-1/+11
|
* Stop daemon when calcurse enters interactive mode.Frederic Culot2009-07-261-1/+3
|
* New way of handling signals.Frederic Culot2009-07-191-8/+6
|
* Avoid a fatal error when launching calcurse in interactive mode if user ↵Frederic Culot2009-07-121-3/+5
| | | | directory does not exist (thanks Antoine for reporting it).
* stdbool header removed, unsigned type used insteadFrederic Culot2009-07-121-37/+37
|
* Switch to BSD license.Frederic Culot2009-07-051-14/+26
|
* Ability to flag todo items as completed.Frederic Culot2009-06-261-1/+3
|
* Basic lock mechanism implemented to avoid having two calcurse instances ↵Frederic Culot2009-06-211-2/+4
| | | | running at the same time.
* bugfix: load keys even in non-interactive mode to avoid the loss of ↵Frederic Culot2009-01-241-2/+1
| | | | user-configured key bindings
* more code cleanupFrederic Culot2009-01-031-17/+19
|
* cut/paste feature adedFrederic Culot2009-01-011-1/+17
| | | | | fixed a 2-years old bug that made repeated items with exceptions to load uncorrectly in some cases (thanks Jan for reporting it)
* Automatic periodic saves implementedFrederic Culot2008-12-281-4/+6
|
* Added wrappers around libc's memory management functions, to easily debug ↵Frederic Culot2008-12-281-6/+6
| | | | memory usage
* new layout configuration menuFrederic Culot2008-12-201-2/+2
|
* Checks added while loading key bindings configuration.Frederic Culot2008-12-071-8/+8
|
* Building configuration menu to assign keybindingsFrederic Culot2008-11-231-3/+7
|
* More work on implementing user-definable keybindingsFrederic Culot2008-11-161-62/+41
|
* Loading of user-configurable keys implementedFrederic Culot2008-11-091-97/+93
|
* import flag and 'i' keybinding addedFrederic Culot2008-09-211-4/+4
|
* More work on ical import. Macros to handle errors and to display messages in ↵Frederic Culot2008-09-201-1/+8
| | | | both command-line and curses mode added
* Initial work on icalendar importFrederic Culot2008-09-151-3/+3
|
* pcal export addedFrederic Culot2008-08-101-2/+23
|
* new keybindings addedFrederic Culot2008-08-031-6/+28
|
* Version 2.1_beta releasedcalcurse_2_1_betaFrederic Culot2008-04-261-4/+1
|
* Yet another style for source code. GNU style now used (I am fed up with tabs...)Frederic Culot2008-04-121-425/+445
|
* Tony's patch concerning date format configuration importedFrederic Culot2008-04-091-4/+4
|
* Ability to attach notes to appointments and events addedFrederic Culot2008-01-131-4/+4
|