RumovZ
0c2ac4ba04
Merge branch 'master' into sidebar-tools
2021-03-10 10:34:36 +01:00
RumovZ
ffbb0b7c07
Disable renaming models and templates ...
...
... but add context action CLayout for templates.
2021-03-10 10:14:06 +01:00
RumovZ
9a844591fe
Ensure mouse is at current index before searching
...
Thus, no search will be triggered when clicking an expansion indicator
as this doesn't update the current element. However, if the indicator
belongs to the current item, a search will be triggered anyway.
2021-03-09 20:36:15 +01:00
RumovZ
a9ea7e39ae
Disable expand on double click in search mode
2021-03-09 20:18:12 +01:00
RumovZ
3f772ce0fe
Add shortcuts for sidebar tools
2021-03-09 11:19:44 +01:00
RumovZ
28402c7015
Improve toolbar styling for macOS
2021-03-09 08:50:01 +01:00
RumovZ
08c09bcb0f
Remove edit mode
2021-03-08 11:55:15 +01:00
RumovZ
8d9072193c
Enable drag for all sidebar items ...
...
... and set valid drop targets dynamically based on the current
selection.
2021-03-08 11:35:39 +01:00
RumovZ
f07890c178
Ask before removing tags from collection
2021-03-07 11:40:11 +01:00
RumovZ
6c4d6457fb
Simplify multi deletion confirmation strings
2021-03-07 11:05:43 +01:00
RumovZ
f72daacae4
Only show edit actions with conform selection
2021-03-07 11:05:28 +01:00
RumovZ
23777eed67
Fix repainting in case of tree building exception
2021-03-07 09:47:17 +01:00
RumovZ
cce1b1f702
Remove context action dict
...
Now that almost all actions can be triggered from outside the context
menu and are available for more than one item type, it's easier to check
for available actions dynamically.
2021-03-05 12:22:49 +01:00
RumovZ
39dad049cd
Fix children check in context tree actions
2021-03-05 10:27:44 +01:00
RumovZ
513e7bdfb4
Enable deleting via delete key
2021-03-04 18:31:35 +01:00
RumovZ
1f500c1fb8
Enable Enter/Return search in all modes ...
...
... but don't trigger search if the key closes the editor.
Also get rid of the on_click of the saved searches root which has
already been removed on main.
2021-03-04 17:40:12 +01:00
RumovZ
4ab9e6caef
Ask for confirmation when overwriting saved search
2021-03-04 17:22:03 +01:00
RumovZ
5c6eea0d80
Make renamed item current (don't just select)
2021-03-03 23:00:37 +01:00
RumovZ
7d3d6edb26
Remove renaming dialogues from sidebar ...
...
... in favour of in-line editing. This is simpler and more ergonomic for
the user (and the programmer) but doesn't allow for editing parents
through text input (in the case of tags and decks).
2021-03-03 21:57:39 +01:00
RumovZ
bcc8a5ac3a
Enable renaming templates from the sidebar
2021-03-03 18:09:53 +01:00
RumovZ
aa4576dd42
Enable renaming notetypes
2021-03-03 15:18:50 +01:00
RumovZ
65a2796a0e
Enable group expanding/collapsing
...
Also, only show expand/collapse actions if they will have an effect.
2021-03-03 11:44:42 +01:00
RumovZ
61e61376a2
Make SidebarItem._is_extended a property
2021-03-03 11:43:31 +01:00
RumovZ
e2940de4a4
Escape backslashes in re.sub()'s repl
2021-03-03 09:20:02 +01:00
RumovZ
c0d77896da
Add DECK_CURRENT as a SidebarItemType
...
Thus, disable renaming, deleting etc. for the current deck item.
As a consequence, editable is no longer needed as a field of SidebarItem
as it can be derived from its type.
2021-03-03 09:15:36 +01:00
RumovZ
adaea7227e
Select and scroll to renamed/added sidebar item
2021-03-02 23:13:34 +01:00
RumovZ
25d57574c9
Enable removal of multiple tags from the sidebar
2021-03-02 11:05:16 +01:00
RumovZ
f4aeb0c097
Enable deleting multiple saved searches
2021-03-01 09:41:41 +01:00
RumovZ
e199bf0b47
Fix repainting when renaming tag via dialogue
2021-03-01 08:45:33 +01:00
RumovZ
30e7d705b6
Enable extended selection in edit mode
2021-03-01 08:45:03 +01:00
Damien Elmes
32af54cd4d
catch attempts to nest under a filtered deck; don't show traceback
2021-03-01 09:58:12 +10:00
Damien Elmes
5564fd9e13
Merge pull request #1040 from RumovZ/deck-name-err
...
Catch deck rename errors and localise warnings
2021-03-01 09:40:55 +10:00
RumovZ
e83f0fef0f
Fix Qt types
2021-02-28 22:36:31 +01:00
RumovZ
dc1711b630
Always return False from rename_node
...
setData expects a result but due to the asynchrony of the editor it
might not be known, yet.
2021-02-28 22:36:21 +01:00
RumovZ
1b8cebb8c5
Enable in-place editing of sidebar tags
2021-02-28 21:50:21 +01:00
RumovZ
d0b916a2ff
Enable in-place editing of saved searches
2021-02-28 21:13:26 +01:00
RumovZ
0b83828508
Enable in-place editing of sidebar deck items
2021-02-28 21:03:19 +01:00
RumovZ
88c69665f3
Add support for multi deck deletion in python
2021-02-26 19:52:34 +01:00
RumovZ
2c25645975
Place sidebar tools right of search bar
2021-02-26 13:04:30 +01:00
RumovZ
92cbf168f6
Catch DeckIsFilteredError directly on frontend
2021-02-26 11:32:40 +01:00
Damien Elmes
b8acf11f3e
remove left-click on saved searches
...
Multiple users have thought it was a bug rather than an intentional
feature, and it breaks double-clicking:
https://forums.ankiweb.net/t/anki-2-1-41-beta/7305/51
2021-02-26 18:48:32 +10:00
RumovZ
f5981e94bf
Add group search context action
2021-02-25 21:24:11 +01:00
RumovZ
172133299b
Handle search on event level
...
Instead of assigning each sidebar item a lambda, add a field for search
representation and handle searching in event handler.
2021-02-25 19:57:12 +01:00
RumovZ
47e1e62967
Make search first (default) mode
2021-02-25 19:28:29 +01:00
RumovZ
4a1e995934
Add edit mode in sidebar
2021-02-25 13:12:51 +01:00
RumovZ
0889972bb0
Save last sidebar tool
2021-02-25 12:20:54 +01:00
RumovZ
fd784adc31
Add select and search modes to sidebar
2021-02-25 11:06:59 +01:00
RumovZ
17afcb094f
Add toolbar to sidebar
2021-02-25 11:05:04 +01:00
RumovZ
8e43b29816
Localise RenameDeckError
2021-02-24 13:57:44 +01:00
bluegreenmagick
d6eac551b1
change _on_click_current to _on_click_index
...
fix bug where clicking on a blank space below sidebar item
would still trigger currentIndex item's click event
2021-02-20 22:58:02 +09:00