aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-12-30 16:31:57 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-12-30 16:31:57 +0100
commit3dccf94f899c58d4b5552a98b20a6aadc9d6b9c4 (patch)
treea3c3fcd4a6d196f918fa3375762cbc1749ed35b8
parentfeat(rich example): set theme to always Dark, add more text (diff)
downloadiced_selection-3dccf94f899c58d4b5552a98b20a6aadc9d6b9c4.tar.gz
docs: update CHANGLELOG and README to reflect latest changes
-rw-r--r--CHANGELOG.md6
-rw-r--r--README.md9
2 files changed, 12 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 09ec9de..cde670d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Added
+- Support for selection on wrapped lines (by-line selection methods don't take wrapped segments into account yet!)
+- Support for changing mouse drag selection when out-of-bounds
+
+Many thanks to...
+- [alex-ds13](https://github.com/alex-ds13)
## 0.3.1 - only created because I published bad code on crates.io
diff --git a/README.md b/README.md
index d69df0b..3dc463a 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Roughly:
- `lib.rs`: Helper methods, macros and re-exports.
## Wrapped text support
-Wrapped text currently isn't supported. Although single-click mouse selection and most keyboard shortcuts will select text correctly, the selection box(es) drawn will be incorrect for wrapped segments and by-line selection (`Shift + Up Arrow` / `Shift + Down Arrow` & triple-click mouse selection) will treat all wrapped segments as part of the same line.
+Wrapped text is supported, but by-line selection (`Shift + Up Arrow` / `Shift + Down Arrow` & triple-click mouse selection) will treat all wrapped segments as part of the same line.
## Installation
Simply add it to under your `Cargo.toml`'s `dependencies` section.
@@ -36,13 +36,16 @@ iced_selection = { git = "https://git.sr.ht/~pml68/iced_selection" }
## TODO
-- [ ] allow out-of-bounds selection dragging
+- [X] allow out-of-bounds selection dragging
- [X] custom markdown `Viewer`
- [X] double-click + drag for by-word selection
- [X] triple-click + drag for by-line selection
-- [ ] support wrapped lines
+- [X] support wrapped lines
+- [ ] fix by-line selection for wrapped line segments
+- [ ] make "combining" multiple text widgets possible ([`feat/global-selectable`](https://git.sr.ht/~pml68/iced_selection/tree/feat/global-selectable))
## Special thanks
- [`iced`](https://iced.rs), for making this possible in the first place, and for the modified source code of `Text`, `Rich` and `Selection` (based on [`text_input/cursor.rs`](https://github.com/iced-rs/iced/blob/master/widget/src/text_input/cursor.rs)).
- [`Halloy`](https://halloy.chat), for its amazing selectable text implementation (check it out, but mind the GPLv3!).
+- [`alex-ds13`](https://github.com/alex-ds13) for their incredible contributions to `iced_selection`.