Skip to content

Commit

Permalink
Add bulk edit in term listing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Dec 19, 2024
1 parent 4591fa2 commit 9c92188
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 25 deletions.
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- [Terms]()
- [Terms](./usage/terms/terms.md)
- [Parent terms](./usage/terms/parent-terms.md)
- [Bulk editing](./usage/terms/bulk-editing.md)
- [Linking parent-child statuses](./usage/terms/link-parent-child-statuses.md)
- [Bulk term import](./usage/terms/bulk-term-import.md)
- [Themes]()
Expand Down
Binary file added src/assets/usage/terms/bulk_01_action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/usage/terms/parent_10.png
Binary file not shown.
Binary file removed src/assets/usage/terms/parent_11.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/usage/reading/bulk-editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ While reading, you can hold down the Shift key and and click multiple words to a

<img width="60%" alt="image" src="../../assets/usage/reading/bulk_01_shift_click.png">

You can hit [hotkeys](bulk-editing.md) to quickly change the status. For example, after hitting "1" to set the status:
You can hit [hotkeys](keyboard-bindings.md) to quickly change the status. For example, after hitting "1" to set the status:

<img width="60%" alt="image" src="../../assets/usage/reading/bulk_02_post_hotkey.png">

Expand Down
13 changes: 13 additions & 0 deletions src/usage/terms/bulk-editing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Bulk editing

> To be released in Lute 3.6.2, currently in beta 3.6.2b1
Terms can be bulk edited from the Terms screen (Home > Terms). Click the checkbox the Terms you wish to update, perhaps filtering the list first, and then from the Action button choose "Bulk edit":

![image](../../assets/usage/terms/bulk_01_action.png)

**Note: all Terms must belong to the same Language!**

For some notes about the form, see [bulk edits while reading](../reading/bulk-editing.md).

In addition to the fields shown in the reading form, you can also downcase selected terms if needed.
24 changes: 0 additions & 24 deletions src/usage/terms/parent-terms.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,3 @@ I can then edit and save that parent term normally.
# Multiple parents

Sometimes, a word might have multiple parents. For example, in Czech, "hoře" is a declension of "hora", the regular form of "hoře", and a conjugation of "hořet". In Spanish, "se sienta" could be a conjugation of "sentarse" or "sentirse". Each parent is entered as a separate tag. You can add multiple parents by typing them and hitting space or return.

# Bulk assigning parents

You can bulk assign terms to a *pre-defined* parent from the Terms screen (Home > Terms). Below shows how it's done:

![image](../../assets/usage/terms/parent_10.png)

I had several terms which should be mapped to the *pre-defined* parent term "to have" (the infinitive).

## 1. Search for the terms you want

Filter for terms with the Search box in the top right.

In that box, I entered "^ha". "^" is a special search character that says "the start of a word", so "^ha" means "show every term that starts with "ha". If I had entered just "ha", terms such as "chat", "that", and "shorthair" would have been included.

## 2. Check the boxes next to the terms you want to assign

I clicked "has", "had", etc.

## 2. Set the parent

In the "Set parent" box, I typed "to" and Lute showed "to have". When I click "go", those terms will be assigned to the parent:

![image](../../assets/usage/terms/parent_11.png)

0 comments on commit 9c92188

Please sign in to comment.