mirror of
https://github.com/m1ngsama/TUT.git
synced 2026-02-08 00:54:05 +00:00
Major architectural refactoring from ncurses to FTXUI framework with professional engineering structure. Project Structure: - src/core/: Browser engine, URL parser, HTTP client - src/ui/: FTXUI components (main window, address bar, content view, panels) - src/renderer/: HTML renderer, text formatter, style parser - src/utils/: Logger, config manager, theme manager - tests/unit/: Unit tests for core components - tests/integration/: Integration tests - assets/: Default configs, themes, keybindings New Features: - btop-style four-panel layout with rounded borders - TOML-based configuration system - Multiple color themes (default, nord, gruvbox, solarized) - Comprehensive logging system - Modular architecture with clear separation of concerns Build System: - Updated CMakeLists.txt for modular build - Prefer system packages (Homebrew) over FetchContent - Google Test integration for testing - Version info generation via cmake/version.hpp.in Configuration: - Default config.toml with browser settings - Four built-in themes - Default keybindings configuration - Config stored in ~/.config/tut/ Removed: - Legacy v1 source files (ncurses-based) - Old render/ directory - Duplicate and obsolete test files - Old documentation files Binary: ~827KB (well under 5MB goal) Dependencies: FTXUI, cpp-httplib, toml11, gumbo-parser, OpenSSL
48 lines
888 B
TOML
48 lines
888 B
TOML
# TUT Default Keybindings
|
|
# Vim-style navigation with function key shortcuts
|
|
|
|
[navigation]
|
|
scroll_up = ["k", "Up"]
|
|
scroll_down = ["j", "Down"]
|
|
page_up = ["b", "Shift+Space"]
|
|
page_down = ["Space"]
|
|
top = ["g"]
|
|
bottom = ["G"]
|
|
back = ["Backspace", "Alt+Left"]
|
|
forward = ["Alt+Right"]
|
|
refresh = ["r", "F5"]
|
|
|
|
[links]
|
|
next_link = ["Tab"]
|
|
prev_link = ["Shift+Tab"]
|
|
follow_link = ["Enter"]
|
|
link_1 = ["1"]
|
|
link_2 = ["2"]
|
|
link_3 = ["3"]
|
|
link_4 = ["4"]
|
|
link_5 = ["5"]
|
|
link_6 = ["6"]
|
|
link_7 = ["7"]
|
|
link_8 = ["8"]
|
|
link_9 = ["9"]
|
|
|
|
[search]
|
|
start_search = ["/"]
|
|
next_result = ["n"]
|
|
prev_result = ["N"]
|
|
|
|
[ui]
|
|
focus_address_bar = ["Ctrl+l"]
|
|
show_help = ["F1", "?"]
|
|
show_bookmarks = ["F2"]
|
|
show_history = ["F3"]
|
|
show_settings = ["F4"]
|
|
add_bookmark = ["Ctrl+d"]
|
|
quit = ["Ctrl+q", "F10", "q"]
|
|
|
|
[forms]
|
|
focus_form = ["i"]
|
|
next_field = ["Tab"]
|
|
prev_field = ["Shift+Tab"]
|
|
submit = ["Enter"]
|
|
cancel = ["Escape"]
|