diff --git a/README.md b/README.md
index 4347b06f..6758c249 100644
--- a/README.md
+++ b/README.md
@@ -99,12 +99,22 @@ Default single-key shortcuts:
- u: Blur tool
- g: Highlight tool
-### Tool Modifiers and Keys
+### Pointer Tool NEXTRELEASE
+
+Annotations can be selected by click.
+Newly created annotation will be autoselected.
+It will update the toolbar to the annotation style and allows style changes.
-Crop:
-- Press Esc or Ctrl+right mouse0.22.0 experimental button while editing to reset crop altogether 0.21.0.
-- Press Enter or Ctrl+left mouse0.22.0 experimental while editing to finish editing crop and keep the crop area active 0.21.0.
-- Left click crop area when tool is active but not editing to resume editing0.21.0.
+- Hold Alt to select between overlapping annotations.
+- Delete deletes the selected annotation.
+- Drag the resize handles to change the size.
+- Grab at the selection border to move.
+- Scroll up/down to raise or lower the annotation.
+- Nudge by cursor keys.
+- Double-click to edit text annotation.
+- Horizontal resize on marker chages its number and vertical the extra ring.
+
+### Tool Modifiers and Keys
Arrow and line:
- Shift to make tool snap to 15° steps.
@@ -170,6 +180,8 @@ resize = { mode = "smart" }
floating-hack = true
# Change to true to automatically copy to clipboard after every annotation change (0.21.0)
auto-copy = false
+# Change to true to automatically select newly created annotation (NEXTRELEASE)
+auto-select-new = false
# Exit directly after copy/save action. 0.21.0: change to list of triggers
# Note that exit-early-save-as was removed with 0.21.0.
early-exit = ["all"]
diff --git a/config.toml b/config.toml
index 68d74bf9..1d6a8a0b 100644
--- a/config.toml
+++ b/config.toml
@@ -12,6 +12,8 @@ resize = { mode = "smart" }
floating-hack = true
# Change to true to automatically copy to clipboard after every annotation change (0.21.0)
auto-copy = false
+# Change to true to automatically select newly created annotation (NEXTRELEASE)
+auto-select-new = false
# Exit directly after copy/save action. 0.21.0: change to list of triggers
# Note that exit-early-save-as was removed with 0.21.0.
early-exit = ["all"]
diff --git a/src/configuration.rs b/src/configuration.rs
index daa92d9d..f2472101 100644
--- a/src/configuration.rs
+++ b/src/configuration.rs
@@ -53,6 +53,7 @@ pub struct Configuration {
annotation_size_factor: f32,
save_after_copy: bool,
auto_copy: bool,
+ auto_select: bool,
actions_on_enter: Vec,
actions_on_escape: Vec,
actions_on_right_click: Vec,
@@ -305,6 +306,9 @@ impl Configuration {
if let Some(v) = general.auto_copy {
self.auto_copy = v;
}
+ if let Some(v) = general.auto_select_new {
+ self.auto_select = v;
+ }
if let Some(v) = general.actions_on_enter {
self.actions_on_enter = v;
}
@@ -577,6 +581,10 @@ impl Configuration {
self.auto_copy
}
+ pub fn auto_select(&self) -> bool {
+ self.auto_select
+ }
+
pub fn actions_on_enter(&self) -> Vec {
self.actions_on_enter.clone()
}
@@ -683,6 +691,7 @@ impl Default for Configuration {
annotation_size_factor: 1.0,
save_after_copy: false,
auto_copy: false,
+ auto_select: false,
actions_on_enter: vec![],
actions_on_escape: vec![Action::Exit],
actions_on_right_click: vec![],
@@ -756,6 +765,7 @@ struct ConfigurationFileGeneral {
annotation_size_factor: Option,
save_after_copy: Option,
auto_copy: Option,
+ auto_select_new: Option,
output_filename: Option,
actions_on_enter: Option>,
actions_on_escape: Option>,
diff --git a/src/femtovg_area/imp.rs b/src/femtovg_area/imp.rs
index f147174a..047df001 100644
--- a/src/femtovg_area/imp.rs
+++ b/src/femtovg_area/imp.rs
@@ -25,7 +25,7 @@ use crate::{
configuration::Action,
math::{Vec2D, rect_ensure_in_bounds, rect_round},
sketch_board::SketchBoardInput,
- tools::{CropTool, Drawable, Tool},
+ tools::{Drawable, Tool, Tools},
};
use super::{font_stack, set_font_stack};
@@ -38,6 +38,7 @@ pub struct FemtoVGArea {
font: RefCell