google-labs-jules[bot] bfb5821078 feat: Add user preference for history item preview line limit
This commit introduces a new user setting allowing you to define the
maximum number of lines displayed in the preview for text or code
clipboard history items.

Key changes:
- Added a "History Item Preview Line Limit" setting in
  `ClipboardHistorySettings.tsx` (defaulting to 5 lines), stored in
  `settingsStore.ts`.
- The `historyPreviewLineLimit` setting is now passed as a prop to
  `ClipboardHistoryRow.tsx` and `ClipboardHistoryQuickPasteRow.tsx`
  from their parent pages (`ClipboardHistoryPage.tsx` and
  `ClipboardHistoryQuickPastePage.tsx` respectively).
- Modified `ClipboardHistoryRow.tsx` and
  `ClipboardHistoryQuickPasteRow.tsx` to truncate the displayed text
  or code preview based on the `historyPreviewLineLimit` prop when
  the item is not expanded.
- The "Show all / Show less" indicators (+X lines / +Y chars) have
  been updated to accurately reflect the truncation based on the new
  line limit.
- Added comprehensive unit tests for both `ClipboardHistoryRow.tsx`
  and `ClipboardHistoryQuickPasteRow.tsx` using Vitest and React
  Testing Library to ensure the new functionality works as expected
  across various scenarios (different limits, content lengths, text vs.
  code, expanded state).
2025-06-20 20:30:21 +00:00
2025-06-19 12:35:08 -04:00
2024-07-29 11:54:03 -04:00
2024-08-15 21:30:47 -04:00
2024-04-10 09:25:53 -04:00
2024-09-01 17:04:04 +00:00
2025-06-13 17:44:21 -04:00

PasteBar - Limitless, Free Clipboard Manager for Mac and Windows.

Screenshot 2024-07-25 at 14 11 09

pastebar-screenshot-main-split

Effortless Management Of Everything You Copy and Paste. Free and open-source.

Key features are:

  • Unlimited clipboard history
  • Searchable copy history
  • Custom saved clips
  • Quick-access paste menus
  • Collections, tabs, and boards for organization
  • Local storage for privacy and security
  • Lock screen and passcode protection
  • Support for text, images, files, links, and code snippets
  • Automatic programming language detection and syntax highlighting
  • Markdown support in notes
  • Instant pasting from system menu
  • Dark theme
  • Global search functionality
  • Customizable clips and menus
  • Support for forms and templates
  • Web scraping and API data extraction capabilities
  • Available for macOS and Windows (including Apple Silicon M1, Intel, AMD, and ARM processors)

https://www.pastebar.app

Stack

  • Rust: Tauri Apps, Diesel ORM, Reqwest, Anyhow, Serde, Tokio.
  • Javascript: Typescript, React, React Query, Vite, TailwindCSS, Signals, Jotai, Zustand.

Build Local PasteBar App

$ npm install
$ npm run build

Development Start

After cloning run:

$ cargo install diesel_cli --no-default-features --features sqlite
$ npm install
$ npm start
Languages
TypeScript 52.1%
Rust 44.5%
JavaScript 2%
CSS 1.1%
HTML 0.2%