Skip to content

Commit 2be045a

Browse files
committed
feat(ui): enhance compact mode and preview search experience
- Refactored constants.py for clarity and simplified config value retrieval. - Improved compact mode UI: reduced margins, spacing, and row/image sizes for denser layout. - Updated controller to resize window more aggressively in compact mode and repopulate list for style consistency. - Enhanced preview window search bar with match counter, next/previous/close buttons, and colored highlights for all/current matches. - Limited preview list row text to 1 line and 80 chars in compact mode for better readability. - Improved CSS for compact mode and preview components.
1 parent 2e800c2 commit 2be045a

7 files changed

Lines changed: 270 additions & 423 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ install: nuitka
8383
@mkdir -p "$(DESKTOP_DEST_DIR)"
8484
@printf "%s\n" \
8585
"[Desktop Entry]" \
86-
"Version=0.1.5" \
86+
"Version=0.2.0" \
8787
"Type=Application" \
8888
"Name=Clipse GUI" \
8989
"GenericName=Clipboard Manager" \

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ This GUI provides a visual way to browse, search, pin, preview, and copy items f
2929
- **Search:** Quickly filter history items using a search bar.
3030
- **Pinning:** Mark important items as "pinned" to keep them visible or filter by them.
3131
- **Preview:** View full text content or larger image previews in a separate window.
32+
- **Format Text:** Pretty-print JSON or clean up text formatting in preview window (Ctrl+B).
33+
- **Search in Preview:** Find and highlight text within preview content with match counter and navigation (Ctrl+F).
3234
- **Copy:** Copy any item from the history back to the system clipboard.
33-
- **Compact Mode:** Minimal UI mode with reduced padding and hidden search bar until needed.
35+
- **Compact Mode:** Minimal UI mode with reduced padding, hidden search bar until needed, and denser layout with optimized spacing.
3436
- **Paste on Enter (Optional):** Configure the application to automatically simulate a paste (Ctrl+V) into the previously focused application after selecting an item with Enter. Requires helper tools (`wtype` for Wayland, `xdotool` for X11).
3537
- **Wayland & X11 Support:** Uses configurable external tools for clipboard interaction, supporting both display server protocols.
3638
- **Lazy Loading:** Loads history items incrementally for better performance with large history files.
@@ -114,6 +116,8 @@ yay -S clipse-gui
114116
- **Search:** Type in the search bar or press `/` or `f` to focus it. Press `Esc` to clear the search.
115117
- **Copy:** Select an item and press `Enter`.
116118
- **Preview:** Select an item and press `Space`.
119+
- **Format Text in Preview:** Press `Ctrl+B` to pretty-print JSON or clean up text formatting.
120+
- **Search in Preview:** Press `Ctrl+F` to open search bar with highlighting and match navigation.
117121
- **Pin/Unpin:** Select an item and press `p`.
118122
- **Delete:** Select an item and press `x` or `Delete`.
119123
- **Filter Pinned:** Press `Tab` to toggle showing only pinned items.

clipse_gui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.5"
1+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)