feat(clipboard): add an in-memory clipboard history with search and paste #41
Closed
BlackAngelTV
wants to merge 27 commits from
feat/clipboard-history into main
pull from: feat/clipboard-history
merge into: FWS:main
FWS:main
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FWS/FWS-Kitty#41
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Objectif
Répond à l'issue #26 : garder un historique local du presse-papiers, consultable et réinsérable, sans jamais toucher au disque.
Raccourcis par défaut
kitty_mod+alt+v→paste_from_clipboard_historykitty_mod+alt+f→search_clipboard_historykitty_modvalantctrl+shiftpar défaut, les combinaisons réelles sontctrl+shift+alt+vetctrl+shift+alt+f. Les versionskitty_mod+shift+…ont été écartées :kitty_modcontient déjàshift, elles se résolvaient sur les mêmes touches quepaste_from_clipboardetmove_window_forward.Changements
kitty/clipboard_history.py: anneau mémoire borné (50 entrées, 64 Kio par entrée, 1 Mio au total), dédoublonnage par remontée en tête, recherche floue (sous-chaîne avant sous-séquence), extraction du texte depuisbytesou un chunker.text/plaindu presse-papiers ; sélection primaire et données non textuelles ignorées ; écritures OSC 5522 avecpwmarquées privées et jamais enregistrées.Échapannule ; recherche floue d'abord), mappées par défaut.kitty/options/types.pyetto-c-generated.hrégénérés (le générateur a été réparé pour accepter les parsers builtin) afin que les mappages soient actifs.docs/clipboard.rst+docs/changelog.rst.Vérifications
kitty_tests/clipboard_history.py+ tests presse-papiers existants : OK ; suite complète :OK (skipped=11).CLIPBOARD_MAPPINGS_LOAD_OK).Limites connues
Entrée.Fixes #26
Pull request closed