Skip to content

Commit

Permalink
-Add command palette menu items
Browse files Browse the repository at this point in the history
-Add shortcuts by default for Month Nav (Left and Right - only when in calendar view)
-Update README
  • Loading branch information
Isaac authored and Isaac committed Jun 24, 2013
1 parent fd6f7d9 commit be2b515
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 45 deletions.
32 changes: 32 additions & 0 deletions Default.sublime-commands
@@ -0,0 +1,32 @@
[
{
"caption": "QuickCal: Show Calendar",
"command": "calendar"
},
{
"caption": "QuickCal: Lookup",
"command": "calendar_lookup"
},
{
"caption": "QuickCal: Next month",
"command": "calendar_month_nav",
"context":
[
{
"key": "calendar_view"
}
],
"args": {"reverse": false}
},
{
"caption": "QuickCal: Prev month",
"command": "calendar_month_nav",
"context":
[
{
"key": "calendar_view"
}
],
"args": {"reverse": true}
}
]
24 changes: 24 additions & 0 deletions Default.sublime-keymap
@@ -0,0 +1,24 @@
[
{
"keys": ["right"],
"command": "calendar_month_nav",
"context":
[
{
"key": "calendar_view"
}
],
"args": {"reverse": false}
},
{
"keys": ["left"],
"command": "calendar_month_nav",
"context":
[
{
"key": "calendar_view"
}
],
"args": {"reverse": true}
}
]
59 changes: 14 additions & 45 deletions README.md
@@ -1,9 +1,14 @@
#QuickCal #QuickCal
<img src="http://dl.dropbox.com/u/342698/QuickCal/Example.png" border="0"/> <img src="http://dl.dropbox.com/u/342698/QuickCal/Example.png" border="0"/>


Sublime Text 3 plugin to show a month calendar Sublime Text 3 plugin to show a simple month calendar.


#Settings #Features
- supports holidays downloaded from holidata.net
- can show weeks starting with Monday or Sunday
- shows week numbers for the year

# Settings
These are the available settings at the current time: These are the available settings at the current time:


```javascript ```javascript
Expand All @@ -23,58 +28,22 @@ These are the available settings at the current time:
} }
``` ```


#Holidays # Holidays
Holidays are currently downloaded from holidata.net. They are limited to about one year in advance of the current, and go back as far as 2011. In the future the ability to import holidays from other sources may be added. Holidays are currently downloaded from holidata.net. They are limited to about one year in advance of the current, and go back as far as 2011. In the future the ability to import holidays from other sources may be added.


#Commands # Commands
Here are the availabe commands. Example keymap is seen below: Calendar can be opened via commands from the command palette. Once a calendar is shown, you can use the left and right arrow to navigate the months of the year.

```javascript
//////////////////////////////////////////////////////////////
// Calendar Shortcuts
//////////////////////////////////////////////////////////////
{
"keys": ["ctrl+super+alt+c"],
"command": "calendar"
},
{
"keys": ["ctrl+super+alt+shift+c"],
"command": "calendar_lookup"
},
{
"keys": ["alt+right"],
"command": "calendar_month_nav",
"context":
[
{
"key": "calendar_view"
}
],
"args": {"reverse": false}
},
{
"keys": ["alt+left"],
"command": "calendar_month_nav",
"context":
[
{
"key": "calendar_view"
}
],
"args": {"reverse": true}
},
```


##CalendarCommand ## CalendarCommand
Show todays date in the calendar (month view only) Show todays date in the calendar (month view only)


##CalendarLookupCommand ## CalendarLookupCommand
Show an input panel allowing the user to define what day they would like to see in the calendar. Input is entered month/day/year, where month, day, and year are numerical values. Any non number delimter can be used, so things like ```3-2-2013``` is also acceptable. Show an input panel allowing the user to define what day they would like to see in the calendar. Input is entered month/day/year, where month, day, and year are numerical values. Any non number delimter can be used, so things like ```3-2-2013``` is also acceptable.


##CalendarMonthNavCommand ## CalendarMonthNavCommand
A command that can only be run in a calendar view. It allows you to navigate to the next/previous month. It takes directional option called reverse, which, if set to ```true```, navigates to the previous month. A command that can only be run in a calendar view. It allows you to navigate to the next/previous month. It takes directional option called reverse, which, if set to ```true```, navigates to the previous month.


#Highlighting current days and holidays # Highlighting current days and holidays
By default, color schemes for the calendar does not show the current day (or day of interest) highlighted, nor does it highlight the holidays. You must update your color scheme file with something like the following: By default, color schemes for the calendar does not show the current day (or day of interest) highlighted, nor does it highlight the holidays. You must update your color scheme file with something like the following:


```xml ```xml
Expand Down

0 comments on commit be2b515

Please sign in to comment.