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 that are automatically deleted after editing.

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-temp/ 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.2.tar.gz (8.1 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.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tips_cli_tool-0.1.2.tar.gz
  • Upload date:
  • Size: 8.1 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.2.tar.gz
Algorithm Hash digest
SHA256 93df6ab2d099914e86af8a2daabaed92971d2958a7949e48a35edf03a0adbb33
MD5 bf0fcc321d292571eb8275fa57275766
BLAKE2b-256 9106998c5977bc5a04084f3d1d11e768d4d60f511ce126f16a304557d81f1a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tips_cli_tool-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e973460ba565a0b9fb9eaec1273f042502e8d22cbe1b49d1d5d49f337865a23
MD5 22bb1112728d460f294616849047c2ef
BLAKE2b-256 db8eeb26944c76efd6abf327686677e99faf23e26ba24eadfc862239edc75fda

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