Automates the generation of the # autogen begin ... # autogen end section in the Midnight Commander hotlist file (~/.config/mc/hotlist).
- Tree-like structure for organized repository navigation.
- Smart Collapsing:
- Automatically collapses file chains like
Host ── Owner ── Repointo a single line if there are no other siblings. - Collapses
Owner ── Repoif an owner has only one repository.
- Automatically collapses file chains like
- Filtering:
- Include: Specify owners (all their repos) or specific repos.
- Exclude: Hide repos by name or glob pattern.
- Multiple directories: Scan multiple repository directories.
Run the Python script to update your hotlist:
./generate_hotlist.pyOn first run, the script will create a default config.toml file from config.example.toml. Edit it to configure:
[general]
# Directories to scan for repositories
repos_dirs = ["~/repos"]
[repositories]
# What to include: owner (all repos) or owner/repo (specific)
include = [
"j2h4u", # all repos from this owner
"torvalds/linux", # specific repo only
]
# What to exclude (repo names or glob patterns)
exclude = ["temp-*", "*.worktree"]- Python 3.11+ (or Python 3.6+ with
tomliinstalled:pip install tomli) - Midnight Commander (
mc) configuration file at~/.config/mc/hotlist.
Automate the generation of the # autogen begin ... # autogen end section in the Midnight Commander hotlist file.
github.com
├── j2h4u
│ ├── hindsight
│ └── mc-hotlist-autogen
├── khabaroff-studio ── CopperPipes
└── tjvjk ── prepodam
gitlab.com ── j2h4u ── cv
- Hosts — whitelist: only
github.1485827954.workers.devandgitlab.com - Include — what to add:
owner— all repos from this ownerowner/repo— specific repo only
- Exclude — what to remove (repo names or glob patterns)
- Multiple directories — scan multiple repository directories specified in
repos_dirs
- Tree-style with
├──and└──prefixes. - Smart Collapsing:
- If a host has only one owner with one repo, the entire chain collapses:
Host ── Owner ── Repo. - If an owner has only one repo, it collapses:
Owner ── Repo. - Uses the
──separator (with spaces).
- If a host has only one owner with one repo, the entire chain collapses: