RumovZ
9816227b5c
Make sidebar flags renamable
2021-05-19 10:04:40 +02:00
Damien Elmes
9f3f6bab7d
enable redo support
...
Also:
- fix issues where the Undo action in the Browse screen was not
consistent with the main window. The existing hook signature has been
changed; from a snapshot of the add-on code from a few months ago, it
was not a hook that was being used by anyone.
- change the undo shortcut in the Browse window to match the main
window. It was different because undoing a change in the editing area
could accidentally trigger an undo of an operation, but the damage is
limited now that (most) operations can be redone. If it still proves to
be a problem, perhaps we should just always swallow ctrl+z when an
editing field is focused.
2021-05-19 15:18:39 +10:00
Damien Elmes
fa47f6ec15
Merge pull request #1170 from RumovZ/fix-columns
...
Fix column issues
2021-05-18 09:24:15 +10:00
Damien Elmes
bd24005e08
PreviewDialog was missing from top level browser module
2021-05-18 09:10:28 +10:00
RumovZ
2290a1652d
Set column sizes and indicator after state change
2021-05-17 20:13:45 +02:00
RumovZ
9ceee90942
Block events when restoring headers
...
Restoring headers after switching states was triggering
_on_column_toggled(), leading to unexpected results.
2021-05-17 20:07:52 +02:00
RumovZ
02f86ec352
Make failed sort column change a no-op
...
The previous behaviour when a non-sortable column was clicked was to
trigger the sorting routine, which was usually a no-op, but would
reorder rows if the configured sort column was hidden.
2021-05-17 18:33:59 +02:00
Damien Elmes
1918031399
update find_duplicates to use QueryOp/CollectionOp
2021-05-08 16:58:18 +10:00
Damien Elmes
f2db822c08
move query_op into operations/, and add the ability to show progress
2021-05-08 16:35:43 +10:00
Damien Elmes
b887032244
split browser dialogs into separate files
2021-05-08 15:08:45 +10:00
Damien Elmes
0b8733032d
the find_and_replace alias is not required
...
Was only added recently, so nothing should depend on it yet.
2021-05-08 14:34:57 +10:00
Damien Elmes
78a3536bfc
move "find duplicates" into separate file
...
As far as I'm aware, no add-ons were extending that screen, so I've
dropped the old context object and the export in browser/__init__.py
2021-05-08 14:33:43 +10:00
Damien Elmes
010c3da770
Merge pull request #1159 from hgiesel/newapproach
...
Prefer idiomatic Svelte features over dynamic components
2021-05-08 11:35:31 +10:00
Henrik Giesel
8b0c6ba5df
Check for id when inserting dynamic elements
...
* I'm not sure it behaved, if there were multiple elements
inserted by different add-ons into the same container
2021-05-07 16:50:17 +02:00
Damien Elmes
7442eed41a
update docstrings for latest black
2021-05-07 18:12:56 +10:00
Damien Elmes
3d8b7d943c
fix find&replace
2021-05-07 14:02:40 +10:00
Henrik Giesel
de8abebcd1
Fix Preview Button after changing from f-string to normal string
2021-05-07 02:12:37 +02:00
Henrik Giesel
2112b419f9
Fix ButtonDropdown
2021-05-07 02:04:44 +02:00
Henrik Giesel
e80f43e8fc
Enable setting of PreviewButton and hiding of cloze button again
2021-05-07 02:04:42 +02:00
Damien Elmes
248373ef30
undoing of notetype templates
2021-04-30 17:30:48 +10:00
RumovZ
abd02d7891
Add separate no_arg_trigger decorator
2021-04-26 08:46:08 +02:00
Damien Elmes
f77983fc9f
Merge pull request #1154 from RumovZ/fix-skip-dec
...
Fix skip_if_selection_is_empty() for triggers
2021-04-26 09:21:42 +10:00
RumovZ
594fe303da
Remove some unnecessary lambdas
2021-04-25 19:51:57 +02:00
RumovZ
9900f73cee
Fix skip_if_selection_is_empty() for triggers
...
It seems to be enough if one decorator calls pyqtSlot(), but to avoid
problems in the future, let's have all decorators do that.
2021-04-25 19:50:56 +02:00
Henrik Giesel
f5fba15435
Initialize editor toolbar via function, not web component
2021-04-25 18:32:01 +02:00
Damien Elmes
b7b329cf90
Merge pull request #1151 from RumovZ/no-sel-dec
...
Fix some problems with browser actions while selection is empty
2021-04-25 20:48:40 +10:00
Damien Elmes
a1ce048ed5
fix error when user cancels out of set due date/reposition
2021-04-25 19:33:25 +10:00
RumovZ
b1392980f5
Skip some browser methods if selection is empty
...
This was handled inconsistently before:
* Select Notes would throw a search error.
* Set Due Date would throw an exception.
* Dialogs with no effect would open.
* No-ops would be pushed to the undo queue.
2021-04-25 08:47:15 +02:00
Henrik Giesel
48b7cb49f9
Make update algorithm in editor-toolbar/index.ts recursive
2021-04-23 20:50:09 +02:00
Henrik Giesel
7563a3c929
Use rawButton in browser.py
2021-04-23 17:34:42 +02:00
Damien Elmes
41d5cae7db
fix Find Dupes activation
2021-04-20 21:13:21 +10:00
RumovZ
3cecc7157b
Add sidebar filter "first review today"
2021-04-18 13:27:10 +02:00
Henrik Giesel
5702b3c273
Add type to add_preview_shortcut
2021-04-15 15:50:29 +02:00
Henrik Giesel
82f6e19955
Add Latex formatting options to menu
...
* Format shortcuts in monospace font and increase padding a little bit
2021-04-15 15:20:37 +02:00
Henrik Giesel
53ae03becc
Add Preview shortcut for browser
2021-04-15 13:09:51 +02:00
Henrik Giesel
a7d24e7159
Add support for Preview button in Browser
2021-04-15 13:09:50 +02:00
RumovZ
f7bf90100d
Fix ChangeModel combos being cleared after setup()
2021-04-14 23:01:40 +02:00
Damien Elmes
4a406192fa
Merge pull request #1127 from Arthur-Milchior/factorize_current_search
...
NF: factorize browser.current_search
2021-04-14 19:16:59 +10:00
Arthur Milchior
be44d4eeed
NF: factorize browser.current_search
...
I was looking at search code and find out that's already slightly more clear/short even if NF
2021-04-14 10:55:41 +02:00
Damien Elmes
c49d6ce49f
run black/isort on Python scripts
2021-04-14 18:22:02 +10:00
Damien Elmes
fc8a5759d5
Merge pull request #1124 from hgiesel/dropjquerypy2
...
Remove jQuery from remaining qt/aqt files
2021-04-14 12:43:11 +10:00
Henrik Giesel
3e1b42bb62
Satisfy formatter
2021-04-13 20:29:59 +02:00
Henrik Giesel
64c7d405f5
Remove jquery from browser.py
2021-04-13 19:54:45 +02:00
RumovZ
594a98eff1
Move previewer.py into browser folder
2021-04-13 11:38:35 +02:00
RumovZ
e43f11339f
Declare all legacy pathnames in browser init
2021-04-13 11:30:32 +02:00
RumovZ
88086596b6
Move find_and_replace.py into browser/dialogs
2021-04-13 11:21:36 +02:00
RumovZ
7ee40e3dce
Refactor sidebar.py into browser folder
2021-04-13 11:05:49 +02:00
RumovZ
2000c80fd2
Refactor browser and table into folders
2021-04-12 09:50:44 +02:00