Skip to content

Commit be78b78

Browse files
authored
Merge pull request #23 from darktable-org/development
Update for 5.4
2 parents 953f7dd + 4a2930a commit be78b78

File tree

5 files changed

+89
-1
lines changed

5 files changed

+89
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: darktable.query_event
3+
id: darktable.query_event
4+
weight: 196
5+
draft: false
6+
author: "people"
7+
---
8+
9+
```
10+
function(
11+
event_name : string,
12+
event_type : string,
13+
) : boolean
14+
```
15+
16+
This function determines if an event is registered by [darktable.register_event](darktable.register_event.md).
17+
Events are documented in the [event](../events) section.
18+
19+
* **event_name** - _string_ - The name of the event registered. The combination of event_name and event_type must be unique.
20+
* **event_type** - _string_ - The type of the event registered.
21+
* **return** - _boolean_ - True if the event exists, otherwise false
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: collection-changed
3+
id: collection-changed
4+
weight: 11
5+
draft: false
6+
author: "people"
7+
---
8+
9+
`event`
10+
11+
This event is triggered whenever the lighttable collection changes. The event triggers anytime the collection module rules change, including simply adding a rule, so the user needs to check to ensure there is actually a change by keeping track of the number of images or checking the collection rules.
12+
13+
# collection-changed.callback
14+
15+
```
16+
function(
17+
event : string,
18+
)
19+
```
20+
21+
* **event** - _string_ - The name of the event that triggered the callback.
22+
23+
# collection-changed.extra registration parameters
24+
25+
This event has no extra registration parameters.

content/lua.api.manual/version.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ author: "people"
88

99
# Current API
1010

11-
The Lua API version used in darktable 5.2.x is 9.5.0.
11+
The Lua API version used in darktable 5.4.x is 9.6.0.
1212

1313
Previous API versions were
1414

15+
- darktable-5.2.x - Lua API 9.5.0
1516
- darktable-5.0.x - Lua API 9.4.0
1617
- darktable-4.8.x - Lua API 9.3.0
1718
- darktable-4.6.x - Lua API 9.2.0
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: regenerate_thumbnails
3+
id: regenerate_thumbnails
4+
weight: 95
5+
draft: false
6+
author: "people"
7+
---
8+
9+
## Name
10+
11+
regenerate_thumbnails.lua - regenerate mipmap cache for selected images
12+
13+
## Description
14+
15+
regenerate_thumbnails drops the cached thumbnail for each selected image
16+
and generates a new thumbnail.
17+
18+
The script adds a button to the actions on selected images module that regenerates the
19+
thumbnail for the currently selected images.
20+
21+
## Usage
22+
23+
* enable the script in script_manager
24+
* assign a shortcut, if desired, to apply the script by hovering
25+
over a skull and using the shortcut to regenerate the thumbnail
26+
27+
## Additional Software Required
28+
29+
None
30+
31+
## Limitations
32+
33+
The image must exist in order to generate the thumbnail
34+
35+
## Author
36+
37+
Bill Ferguson - [email protected]
38+
39+
## Change Log

content/lua.scripts.manual/scripts/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ These scripts are written primarily by the darktable developers and maintained b
1818

1919
Name|Standalone|Op/Sys |Purpose
2020
----|:--------:|:-----:|-------
21+
[apply_camera_style](official/apply_camera_style.md)|Yes|LMW|Apply camera styles to images
2122
[check_for_updates](official/check_for_updates.md)|Yes|LMW|Check for updates to darktable
2223
[copy_paste_metadata](official/copy_paste_metadata.md)|Yes|LMW|Copy and paste metadata, tags, ratings, and color labels between images
2324
[delete_long_tags](official/delete_long_tags.md)|Yes|LMW|Delete all tags longer than a specified length
@@ -27,6 +28,7 @@ Name|Standalone|Op/Sys |Purpose
2728
[image_path_in_ui](official/image_path_in_ui.md)|Yes|LMW|Plugin to display selected image path
2829
[import_filter_manager](official/import_filter_manager.md)|Yes|LMW|Manager for import filters
2930
[import_filters](official/import_filters.md)|No|LMW|Two import filters for use with import_filter_manager
31+
[regenerate_thumbnails](official/regenerate_thumbnails.md)|Yes|LMW|Regenerate missing lighttable thumbnails
3032
[save_selection](official/save_selection.md)|Yes|LMW|Provide save and restore from multiple selection buffers
3133
[selection_to_pdf](official/selection_to_pdf.md)|No|L|Generate a PDF file from the selected images
3234

0 commit comments

Comments
 (0)