diff --git a/readme.md b/readme.md
index 2692098..7da2206 100644
--- a/readme.md
+++ b/readme.md
@@ -12,7 +12,7 @@ Medios-Macina is a file media manager and virtual toolbox capable of downloading
Do you want a no-brainer one-stop shop for finding & downloading applications?
Are you one that has an unorganized & unapologetic mess of files that are loosely organized in random folders?
Does it take you several brainfarts until you get a scent of where that file is at that your looking for?
-
+Do you have trouble struggling with filenames so that you can find the file you want later?
CONTENTS
diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py
index d01311c..b7a2668 100644
--- a/scripts/bootstrap.py
+++ b/scripts/bootstrap.py
@@ -123,17 +123,17 @@ LOGO = r"""
██║╚██╔╝██║██╔══╝ ██║ ██║██╔══╝ ██║██╔══██║ ██║╚██╔╝██║██╔══██║██║ ██║██║╚██╗██║██╔══██║
██║ ╚═╝ ██║███████╗██████╔╝███████╗██║██║ ██║ ██║ ╚═╝ ██║██║ ██║╚██████╗██║██║ ╚████║██║ ██║
╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
- < ΓΝΩΘΙ ΣΕΑΥΤΟΝ | TEMET NOSCE | KNOW THYSELF >
- 0123456789123456789123456789123456789123456789
- 0246813579246813579246813579246813579246813579
- 0369369369369369369369369369369369369369369369
- 0483726159483726159483726159483726159483726159
- 0516273849516273849516273849516273849516273849
- 0639639639639639639639639639639639639639639639
- 0753816429753816429753816429753816429753816429
- 0876543219876543219876543219876543219876543219
- 0999999999999999999999999999999999999999999999
- < ALL WITHIN ARE KNOW | ABLE ALL ARE WITHOUT >
+ < ΓΝΩΘΙ ΣΕΑΥΤΟΝ | TEMET NOSCE | KNOW THYSELF >
+ 0123456789123456789123456789123456789123456789
+ 0246813579246813579246813579246813579246813579
+ 0369369369369369369369369369369369369369369369
+ 0483726159483726159483726159483726159483726159
+ 0516273849516273849516273849516273849516273849
+ 0639639639639639639639639639639639639639639639
+ 0753816429753816429753816429753816429753816429
+ 0876543219876543219876543219876543219876543219
+ 0999999999999999999999999999999999999999999999
+ < ALL WITHIN ARE KNOW | ABLE ALL ARE WITHOUT >
"""
@@ -933,10 +933,14 @@ def main() -> int:
# Clear the terminal before showing logo
os.system('cls' if os.name == 'nt' else 'clear')
term_width = shutil.get_terminal_size((80, 20)).columns
- logo_lines = LOGO.strip().splitlines()
+ logo_lines = LOGO.strip('\n').splitlines()
+ max_line_width = 0
+ for line in logo_lines:
+ max_line_width = max(max_line_width, len(line.rstrip()))
+ padding = ' ' * max((term_width - max_line_width) // 2, 0)
print("\n" * 2)
for line in logo_lines:
- print(line.center(term_width))
+ print(f"{padding}{line.rstrip()}")
print("\n")
# Determine total steps for progress bar
@@ -1486,6 +1490,7 @@ if (Test-Path (Join-Path $repo 'CLI.py')) {
_install_user_shims(repo_root)
if not args.quiet:
+ os.system('cls' if os.name == 'nt' else 'clear')
print()
print("command: mm")
print(".config")
diff --git a/scripts/check_imports.py b/scripts/check_imports.py
deleted file mode 100644
index 5c6dad6..0000000
--- a/scripts/check_imports.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import importlib
-import sys
-import traceback
-
-try:
- importlib.import_module("CLI")
- print("CLI imported OK")
-except Exception:
- traceback.print_exc()
- sys.exit(1)
diff --git a/scripts/check_indentation.py b/scripts/check_indentation.py
deleted file mode 100644
index 91fe493..0000000
--- a/scripts/check_indentation.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from pathlib import Path
-p = Path('Store/registry.py')
-lines = p.read_text(encoding='utf-8').splitlines()
-stack = [0]
-for i, line in enumerate(lines, start=1):
- if not line.strip():
- continue
- leading = len(line) - len(line.lstrip(' '))
- if leading > stack[-1]:
- # increased indent -> push
- stack.append(leading)
- else:
- # dedent: must match an existing level
- if leading != stack[-1]:
- if leading in stack:
- # pop until match
- while stack and stack[-1] != leading:
- stack.pop()
- else:
- print(f"Line {i}: inconsistent indent {leading}, stack levels {stack}")
- print(repr(line))
- break
-print('Done')
\ No newline at end of file
diff --git a/scripts/check_pattern.py b/scripts/check_pattern.py
deleted file mode 100644
index dd3849c..0000000
--- a/scripts/check_pattern.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import re
-from pathlib import Path
-p = Path(r'c:\Forgejo\Medios-Macina\CLI.py')
-s = p.read_text(encoding='utf-8')
-pattern = re.compile(r'(?s)if False:\s*class _OldPipelineExecutor:.*?from rich\\.markdown import Markdown\\s*')
-m = pattern.search(s)
-print('found', bool(m))
-if m:
- print('start', m.start(), 'end', m.end())
- print('snippet:', s[m.start():m.start()+120])
-else:
- # print a slice around the if False for debugging
- i = s.find('if False:')
- print('if False index', i)
- print('around if False:', s[max(0,i-50):i+200])
- j = s.find('from rich.markdown import Markdown', i)
- print('next from rich index after if False', j)
- if j!=-1:
- print('around that:', s[j-50:j+80])
diff --git a/scripts/check_store.py b/scripts/check_store.py
deleted file mode 100644
index 113a13e..0000000
--- a/scripts/check_store.py
+++ /dev/null
@@ -1,12 +0,0 @@
-import traceback
-
-try:
- from Store import Store
- s = Store(config={}, suppress_debug=True)
- print('INSTANCE TYPE:', type(s))
- print('HAS is_available:', hasattr(s, 'is_available'))
- if hasattr(s, 'is_available'):
- print('is_available callable:', callable(getattr(s, 'is_available')))
- print('DIR:', sorted([n for n in dir(s) if not n.startswith('__')]))
-except Exception:
- traceback.print_exc()
\ No newline at end of file
diff --git a/scripts/check_try_balance.py b/scripts/check_try_balance.py
deleted file mode 100644
index c5751ab..0000000
--- a/scripts/check_try_balance.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from pathlib import Path
-p=Path('SYS/pipeline.py')
-s=p.read_text(encoding='utf-8')
-lines=s.splitlines()
-stack=[]
-for i,l in enumerate(lines,1):
- stripped=l.strip()
- # Skip commented lines
- if stripped.startswith('#'):
- continue
- # compute indent as leading spaces (tabs are converted)
- indent = len(l) - len(l.lstrip(' '))
- if stripped.startswith('try:'):
- stack.append((indent, i))
- if stripped.startswith('except ') or stripped=='except:' or stripped.startswith('finally:'):
- # find the most recent try with same indent
- for idx in range(len(stack)-1, -1, -1):
- if stack[idx][0] == indent:
- stack.pop(idx)
- break
- else:
- # no matching try at same indent
- print(f"Found {stripped.split()[0]} at line {i} with no matching try at same indent")
-
-print('Unmatched try count', len(stack))
-if stack:
- print('Unmatched try positions (indent, line):', stack)
- for indent, lineno in stack:
- start = max(1, lineno - 10)
- end = min(len(lines), lineno + 10)
- print(f"Context around line {lineno}:")
- for i in range(start, end + 1):
- print(f"{i:5d}: {lines[i-1]}")
-else:
- print("All try statements appear matched")
diff --git a/scripts/debug_import_vimm.py b/scripts/debug_import_vimm.py
deleted file mode 100644
index f954042..0000000
--- a/scripts/debug_import_vimm.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import importlib
-import traceback
-
-try:
- m = importlib.import_module('Provider.vimm')
- print('Imported', m)
- print('Vimm class:', getattr(m, 'Vimm', None))
-except Exception as e:
- print('Import failed:', e)
- traceback.print_exc()
diff --git a/scripts/find_big_indent.py b/scripts/find_big_indent.py
deleted file mode 100644
index 2c57e66..0000000
--- a/scripts/find_big_indent.py
+++ /dev/null
@@ -1,6 +0,0 @@
-from pathlib import Path
-p = Path('Store/registry.py')
-for i, line in enumerate(p.read_text(encoding='utf-8').splitlines(), start=1):
- leading = len(line) - len(line.lstrip(' '))
- if leading > 20:
- print(i, leading, repr(line))
\ No newline at end of file
diff --git a/scripts/format_tracked.py b/scripts/format_tracked.py
deleted file mode 100644
index f242c14..0000000
--- a/scripts/format_tracked.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env python3
-"""Format all tracked Python files using the repo's YAPF style.
-
-This script intentionally formats only files tracked by git to avoid touching
-files that are ignored (e.g., venv, site-packages).
-"""
-import subprocess
-import sys
-
-try:
- out = subprocess.check_output(["git", "ls-files", "*.py"]).decode("utf-8")
-except subprocess.CalledProcessError as exc:
- print("Failed to get tracked files from git:", exc, file=sys.stderr)
- sys.exit(1)
-
-files = [f for f in (line.strip() for line in out.splitlines()) if f]
-print(f"Formatting {len(files)} tracked python files...")
-if not files:
- print("No tracked python files found.")
- sys.exit(0)
-
-for path in files:
- print(path)
- subprocess.run([sys.executable, "-m", "yapf", "-i", "--style", ".style.yapf", path], check=False)
-
-print("Done")
diff --git a/scripts/indent_check.py b/scripts/indent_check.py
deleted file mode 100644
index 03b1c39..0000000
--- a/scripts/indent_check.py
+++ /dev/null
@@ -1,11 +0,0 @@
-import pathlib
-p = pathlib.Path('Store/registry.py')
-with p.open('r', encoding='utf-8') as f:
- lines = f.readlines()
-for i in range(312, 328):
- if i-1 < len(lines):
- line = lines[i-1]
- leading = line[:len(line)-len(line.lstrip('\t '))]
- print(f"{i}: {repr(line.rstrip())} | leading={repr(leading)} len={len(leading)} chars={[ord(c) for c in leading]}")
- else:
- print(f"{i}: ")
\ No newline at end of file
diff --git a/scripts/indent_stats.py b/scripts/indent_stats.py
deleted file mode 100644
index e6c4d58..0000000
--- a/scripts/indent_stats.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from pathlib import Path
-p = Path('Store/registry.py')
-counts = {}
-for i, line in enumerate(p.read_text(encoding='utf-8').splitlines(), start=1):
- if not line.strip():
- continue
- leading = len(line) - len(line.lstrip(' '))
- counts[leading] = counts.get(leading, 0) + 1
-for k in sorted(counts.keys()):
- print(k, counts[k])
diff --git a/scripts/list_providers.py b/scripts/list_providers.py
deleted file mode 100644
index 073fb65..0000000
--- a/scripts/list_providers.py
+++ /dev/null
@@ -1,4 +0,0 @@
-from ProviderCore.registry import list_search_providers, list_providers
-
-print('Search providers:', list_search_providers())
-print('All providers:', list_providers())