Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

-Add command palette menu items

-Add shortcuts by default for Month Nav (Left and Right - only when in calendar view)
-Update README
  • Loading branch information...
commit be2b515f24aaa23f4013a6df765d6f0b82911fe2 1 parent fd6f7d9
Isaac authored
Showing with 70 additions and 45 deletions.
  1. +32 −0 Default.sublime-commands
  2. +24 −0 Default.sublime-keymap
  3. +14 −45 README.md
View
32 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}
+ }
+]
View
24 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}
+ }
+]
View
59 README.md
@@ -1,9 +1,14 @@
#QuickCal
<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:
```javascript
@@ -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.
-#Commands
-Here are the availabe commands. Example keymap is seen below:
-
-```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}
- },
-```
+# Commands
+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.
-##CalendarCommand
+## CalendarCommand
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.
-##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.
-#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:
```xml
Please sign in to comment.
Something went wrong with that request. Please try again.