项目作者: Fire-Dragon-DoL

项目描述 :
Insert current date or any date in Sublime Text with a simple command
高级语言: Python
项目地址: git://github.com/Fire-Dragon-DoL/sublime-InsertAnyDate.git
创建时间: 2019-05-23T17:59:21Z
项目社区:https://github.com/Fire-Dragon-DoL/sublime-InsertAnyDate

开源协议:MIT License

下载


InsertAnyDate

Easily insert custom-formatted dates in your files.

Usage

All date format specifications follow the Python strftime syntax.

The following commands are provided in the command palette

  • InsertAnyDate: Today which inserts the current date in the current file,
    formatted according to the format_out setting
  • InsertAnyDate: Custom Date which requests the user an input date (
    formatted according to format_in setting) and inserts the it in the current
    file, formatted according to the format_out setting

Alternatively, hotkeys could be created:

  1. // Insert always the date 2000-01-01
  2. {
  3. "keys": ["ctrl+alt+d"],
  4. "command": "insert_any_date",
  5. "args": {"date": "2000-01-01"}
  6. },
  7. // Insert the current date
  8. { "keys": ["ctrl+alt+t"], "command": "insert_any_date" },
  9. // Prompt the user for a date to insert
  10. { "keys": ["ctrl+alt+y"], "command": "insert_any_date_prompt" }