Metadata-Version: 2.4
Name: xitkit
Version: 2.1.0
Summary: A powerful command-line task management tool that parses and manages tasks from .xit and .md files using the x-it! format
License-Expression: MIT
License-File: LICENSE
Keywords: task,management,cli,todo,xit,productivity
Author: Christian
Author-email: 202550520+hoechstleistungshaartrockner@users.noreply.github.com
Requires-Python: >=3.14,<4.0.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Office/Business :: Scheduling
Classifier: Topic :: Utilities
Classifier: Environment :: Console
Provides-Extra: dev
Requires-Dist: black (>=23.0.0) ; extra == "dev"
Requires-Dist: click (>=8.0.0)
Requires-Dist: flake8 (>=6.0.0) ; extra == "dev"
Requires-Dist: isort (>=5.12.0) ; extra == "dev"
Requires-Dist: mypy (>=1.0.0) ; extra == "dev"
Requires-Dist: pytest (>=8.0.0) ; extra == "dev"
Requires-Dist: pytest-mock (>=3.10.0) ; extra == "dev"
Requires-Dist: pytest-xdist (>=3.0.0) ; extra == "dev"
Requires-Dist: questionary (>=2.1.1,<3.0.0)
Requires-Dist: rich (>=13.0.0)
Requires-Dist: textual (>=6.3.0,<7.0.0)
Project-URL: Bug Tracker, https://github.com/hoechstleistungshaartrockner/xitkit/issues
Project-URL: Homepage, https://github.com/hoechstleistungshaartrockner/xitkit
Project-URL: Repository, https://github.com/hoechstleistungshaartrockner/xitkit.git
Description-Content-Type: text/markdown

# :clipboard: XitKit

A powerful command-line task management tool that parses and manages tasks from `.xit` and `.md` files using the [x]it! format (https://xit.jotaen.net/)

## :sparkles: Features

- **:arrows_counterclockwise: Multiple Task States**: Open, checked, ongoing, obsolete, and in-question tasks
- **:zap: Priority Levels**: Support for multiple priority indicators (`!`, `!!`, `!!!`)
- **:calendar: Due Dates**: Flexible date parsing with various formats
- **:label: Tags**: Organize tasks with hashtags and optional values
- **:memo: Multi-line Descriptions**: Support for continued task descriptions
- **:file_folder: Groups & Headers**: Organize related tasks under headers
- **:art: Rich Output**: Beautiful terminal output with colors and formatting
- **:mag: Flexible Filtering**: Filter tasks by status, priority, tags, and more
- **:bar_chart: Statistics**: Get insights about your task distribution
- **:rocket: Batch Processing**: Mark, reschedule, remove, or move multiple tasks at once
- **:repeat: Recurring Tasks**: Create recurring instances with flexible intervals (daily, weekly, monthly, yearly)
- **:shell: Shell Integration**: Support for shell expansion (`{3..21}`) and sequences
- **:tomato: Pomodoro timer**: simple, textual-based pomodoro timer
- **:wrench: Interactive Mode**: Edit tasks interactively

## :package: Installation

### :warning: Prerequisites

- Python 3.14+
- Micromamba or Conda (recommended but not necessary)

### :gear: Setup

1. Clone the repository:
   ```bash
   git clone https://github.com/hoechstleistungshaartrockner/xitkit.git
   cd xitkit
   ```

2. Create the environment:
   ```bash
   micromamba create -f micromamba.yaml
   micromamba activate xitkit
   ```
   or create your own environment with Python 3.14+ and install Poetry:
   ```bash
   python -m pip install --user poetry
   ```

3. Install dependencies:
   ```bash
   poetry install
   poetry install --extras dev
   ```

## :computer: Usage
Two command-line entry points are provided: `xitkit` and `xit`. Both commands function identically.

```bash
xit --help
xitkit --help
```

### :toolbox: Available Subcommands

| Command    | Description                                               |
|------------|-----------------------------------------------------------|
| add        | Add a new task.                                           |
| mark       | Mark one or more tasks with a specific status.            |
| move       | Move one or more tasks to another file.                   |
| pomodoro   | A simple Pomodoro Timer App to run in the terminal.       |
| prio       | Set the priority of a task.                               |
| recur      | Create recurring instances of a task.                     |
| reschedule | Reschedule one or more tasks to a new due date.           |
| rm         | Remove one or more tasks by their IDs with confirmation.  |
| show       | Show tasks from .md and .xit files.                       |
| stats      | Show statistics about tasks.                              |
| tag        | Add a tag to a task.                                      |
| untag      | Remove a tag from a task.                                 |


### :bulb: Command Examples

```bash
# Show all tasks in current directory
xit show

# Show tasks from specific files
xit -f tasks.xit show

# Show only open tasks
xit show --status open

# Show tasks with IDs for reference
xit show --show-id

# Show task statistics
xit stats

# Show help
xit --help

# Interactive mode
xit show --interactive # will prompt you to select which tasks to show (applies for other commands as well)

# Add a new task
xit add "Buy groceries"
xit add "Important meeting -> 2025-12-15 #work" -f work.xit -p 2

# Mark tasks with new status flags (supports batch processing)
xit mark 5 --done                     # Mark task #5 as done
xit mark 2 3 4 5 6 --done             # Mark multiple tasks as done
xit mark {3..21} --ongoing            # Mark task range as ongoing (bash expansion)
xit mark 1 --open                     # Reopen a task
xit mark 7 8 --obsolete               # Mark tasks as obsolete
xit mark 9 --inquestion               # Mark task as in question

# Reschedule tasks (supports batch processing)
xit reschedule 5 -n 2025-12-31            # Set specific date for single task
xit reschedule 2 3 4 -n today             # Set multiple tasks to today
xit reschedule {3..21} -n tomorrow        # Set task range to tomorrow (bash expansion)

# Remove tasks (supports batch processing with confirmation)
xit rm 5                               # Remove single task (with confirmation)
xit rm 2 3 4 5                        # Remove multiple tasks (confirmation for each)
xit rm {3..21}                         # Remove task range (bash expansion)

# Move tasks between files (supports batch processing)
xit move 5 --target-file other.xit          # Move single task to another file
xit move 2 3 4 --target-file done.xit      # Move multiple tasks to done.xit
xit move {3..21} --target-file archive.xit  # Move task range to archive.xit

# Create recurring instances of tasks
xit recur 5 --interval 1w --count 4    # Create 4 weekly instances of task #5
xit recur 3 --interval 2w --count 5     # Create 5 bi-weekly instances of task #3
xit recur 7 --interval 1m --end 2026-12-31       # Monthly recurrence until end of 2026
xit recur 2 --interval 1d --count 30 --task-file work.xit  # 30 daily instances in work.xit file

# Edit task properties
xit edit 5 "Updated task description"   # Change the description of task #5
xit prio 3 -p 2                          # Set priority level 2 (!!) for task #3
xit prio 7 -p 0                          # Remove priority from task #7
xit tag 5 -t urgent                      # Add #urgent tag to task #5
xit tag 3 -t "work"                      # Add #work tag to task #3
xit untag 5 -t urgent                    # Remove #urgent tag from task #5
```


## :wrench: Development

### :test_tube: Running Tests

```bash
python -m pytest
```

## :page_facing_up: License

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

## :pray: Acknowledgments

- Developer of the [x]it! format: [Jotaen](https://github.com/Jotaen/xit)
- Built with [Rich](https://github.com/Textualize/rich) for beautiful terminal output
- Uses [Click](https://click.palletsprojects.com/) for the command-line interface
- Uses [Questionary](https://github.com/tmbo/questionary) for interactive prompts


