Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,22 @@ Default single-key shortcuts:
- <kbd>u</kbd>: Blur tool
- <kbd>g</kbd>: Highlight tool

### Tool Modifiers and Keys
### Pointer Tool <sup>NEXTRELEASE</sup>

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 <kbd>Esc</kbd> or <kbd>Ctrl</kbd>+right mouse<sup>0.22.0</sup> <sup>experimental</sup> button while editing to reset crop altogether <sup>0.21.0</sup>.
- Press <kbd>Enter</kbd> or <kbd>Ctrl</kbd>+left mouse<sup>0.22.0</sup> <sup>experimental</sup> while editing to finish editing crop and keep the crop area active <sup>0.21.0</sup>.
- Left click crop area when tool is active but not editing to resume editing<sup>0.21.0</sup>.
- Hold <kbd>Alt</kbd> to select between overlapping annotations.
- <kbd>Delete</kbd> 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:
- <kbd>Shift</kbd> to make tool snap to 15° steps.
Expand Down Expand Up @@ -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"]
Expand Down
2 changes: 2 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
10 changes: 10 additions & 0 deletions src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Action>,
actions_on_escape: Vec<Action>,
actions_on_right_click: Vec<Action>,
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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<Action> {
self.actions_on_enter.clone()
}
Expand Down Expand Up @@ -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![],
Expand Down Expand Up @@ -756,6 +765,7 @@ struct ConfigurationFileGeneral {
annotation_size_factor: Option<f32>,
save_after_copy: Option<bool>,
auto_copy: Option<bool>,
auto_select_new: Option<bool>,
output_filename: Option<String>,
actions_on_enter: Option<Vec<Action>>,
actions_on_escape: Option<Vec<Action>>,
Expand Down
Loading
Loading