Skip to main content

A simple CLI tool for creating temporary notes that are automatically deleted after editing.

Project description

Tips CLI Tool

A simple command-line tool for creating temporary notes. The notes are automatically deleted after you close the editor.

Features

  • Quick Note Creation: Instantly create a temporary note file with a timestamped name.
  • Configurable Editor: Use your preferred editor (VS Code, Notepad, Notepad++, etc.).
  • Automatic Cleanup: The temporary file is automatically deleted when you close the editor.
  • Cross-Platform: Works on Windows, macOS, and Linux.

Installation

pip install tips-cli-tool

Usage

Simply run the command:

tips

This will create a new temporary .md file and open it in your default editor (VS Code by default).

Options

  • -e EDITOR, --editor EDITOR: Specify the editor to use (overrides config).
  • -x EXTENSION, --extension EXTENSION: Specify the file extension (overrides config).
  • -c CONFIG, --config CONFIG: Path to the configuration file.

Examples

# Use Notepad on Windows
tips --editor notepad

# Create a temporary .txt file
tips --extension .txt

# Use a custom configuration file
tips --config /path/to/my/config.yaml

Configuration

Tips CLI Tool uses a configuration file to define default settings and editor commands.

The configuration file is located at:

  • Linux/macOS: ~/.config/tips/config.yaml or ~/.tips_config.yaml
  • Windows: ~/.tips_config.yaml (or potentially %APPDATA%/Tips/config.yaml)

Example Configuration (config.yaml)

# Default editor to use
default_editor: "vscode"

# Default file extension
default_extension: ".md"

# Editor configurations
editors:
  vscode:
    command: "code"
    args: ["--wait"]

  notepad:
    command: "notepad"
    args: []

  notepadpp:
    command: "notepad++"
    args: ["-multiInst", "-nosession"]

  sublime:
    command: "subl"
    args: ["--wait"]

  vim:
    command: "vim"
    args: []

  gvim:
    command: "gvim"
    args: ["--nofork"]

How It Works

  1. When you run tips, it creates a new file in ~/.tips/ with a name like YYYYMMDD_HHMMSS_microseconds.md.
  2. It then launches your configured editor to open this file.
  3. The tool waits for the editor process to finish (typically when you close the editor window).
  4. Once the editor is closed, the temporary file is automatically deleted.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tips_cli_tool-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tips_cli_tool-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file tips_cli_tool-0.1.0.tar.gz.

File metadata

  • Download URL: tips_cli_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for tips_cli_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da3dfe9c25535778a43cd8969189af3f1443b92b9804f9665eeacbfc0ef89418
MD5 6767b833d13aaa2ae9ad2b910c456fe0
BLAKE2b-256 c8926788ab6effe20bda88fff9667f30133aa267c95021af68fbad75d1596a76

See more details on using hashes here.

File details

Details for the file tips_cli_tool-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tips_cli_tool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for tips_cli_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11b2f571a1c3a9a8a68ca9a20229cb90dd745da1860125900d6e6bbb1b33b523
MD5 81253036f3776005f4393ecf8fa78b31
BLAKE2b-256 2bf5d1eb273d5c93cd6cd5aee2862df0456a257bcb0c9d378d83cd13fb058b4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page