Skip to content

andyiac/sublime_diary

 
 

Repository files navigation

install

  1. Install path
~/Library/Application Support/Sublime Text/Packages [18:36:53] 
$ ls
sublime_diary User
  1. sublime Preferences.sublime-settings

目前主要是 DocRoot

"diary_volumes": {
	"DocRoot": "~/Documents/Braindump",
	"Work": "~/Documents",
	"Projects": "~/Documents",
	"Dropbox": "~/Documents/",
	"UNI": "~/Documents/_UNI/"
}
  1. sublime 控制台 运行命令
view.run_command('diary')
view.run_command('project_log')
view.run_command('food_log')
view.run_command('go_to_diary')

Sublime Text 4 plugin for my daily logs

This is a Sublime Text 4 plugin (compatible with ST3) which adds some new commands to the Tools menu that help create and update the markdown/yaml files I use for daily logging, and keep track of different projects I'm working on.

Installation

Copy the plugin folder into the Sublime Text Packages folder (Preferences -> Browse Packages).

Settings

The 'Go to DIARY' context menu can resolve "volumes", that is root folders where different projects are kept. I have the same folder structures on the machines I work with, but they may be in a different path (e.g. between Window and macOS, etc)

Add to Preferences -> settings.

	"diary_volumes": {
		"Work": "D:\\Work\\",
		"Projects": "D:\\Projects\\",
		"Dropbox": "~/Dropbox/",
		"UNI": "~/Dropbox/_UNI/"
	}

Paths between backticks are opened, and resolved using the volumes set in Preferences. E.g. Work:Tests/MyCoolProject would resolve to D:\Work\Tests\MyCoolProject using the above settings.

I have .md files associated with Sublime Text, so opening them just opens a new tab for me. If the path is a folder it gets opened in Explorer/Finder/etc.

Dev notes

Ref Links

Python Commands

view.run_command('diary')
view.run_command('project_log')
view.run_command('food_log')
view.run_command('go_to_diary')

About

Sublime Text 3 plugin for my daily diary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%