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.yamlor~/.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
- When you run
tips, it creates a new file in~/tips-temp/with a name likeYYYYMMDD_HHMMSS_microseconds.md. - It then launches your configured editor to open this file.
- The tool waits for the editor process to finish (typically when you close the editor window).
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93df6ab2d099914e86af8a2daabaed92971d2958a7949e48a35edf03a0adbb33
|
|
| MD5 |
bf0fcc321d292571eb8275fa57275766
|
|
| BLAKE2b-256 |
9106998c5977bc5a04084f3d1d11e768d4d60f511ce126f16a304557d81f1a8e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e973460ba565a0b9fb9eaec1273f042502e8d22cbe1b49d1d5d49f337865a23
|
|
| MD5 |
22bb1112728d460f294616849047c2ef
|
|
| BLAKE2b-256 |
db8eeb26944c76efd6abf327686677e99faf23e26ba24eadfc862239edc75fda
|