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.1.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.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tips_cli_tool-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 72aa009b34ada75d3958b7c75fcda32815d6c08fa142b14ee2026fe53cc7172e
MD5 a896d68925a588e5b49678a46139d45d
BLAKE2b-256 58f681f5f54949c0b05518bf39407022d8a261593d8c588c9977513e52461a72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tips_cli_tool-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04e3527bc2a431f2047e52126bd56c61d9b6d17ff171b0cdaee746eda941ada6
MD5 f40bc7d79bc6b0349360e214c1a360c1
BLAKE2b-256 c2a2ef6c3f817ec9401fd6b4263608eef6ee952975ced8a894944a38bc4fd7a6

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