RumovZ
00a5a6ff33
Work around Qt's focus bug (fix help-wanted#22)
...
Manually hide the editor's completer popup before accepting a short cut which changes the focus widget. Thus, work around the bug in PyQt 5.15 where a QLineEdit with open QCompleter popup won't get notified about focus changes handled by the Main Window, leading to inconsistent focus.
2020-10-24 10:47:25 +02:00
Damien Elmes
00a71b6499
Merge pull request #799 from hgiesel/cal
...
Introduce Browser.search_for and Browser.update_search
2020-10-21 21:31:21 +10:00
Damien Elmes
dff4849241
Merge pull request #798 from abdnh/escape-quotes-in-search
...
Escape double quotes in search
2020-10-21 21:28:51 +10:00
Henrik Giesel
ee34a3458c
Turn update_search into its own method
2020-10-19 21:07:29 +02:00
Henrik Giesel
bd9fca786d
Add search prompt for setupSearch
2020-10-19 20:57:19 +02:00
Henrik Giesel
634a6f04d1
Add uses of search_for
2020-10-19 20:51:36 +02:00
Henrik Giesel
ae26e2fc70
Add search_for method
2020-10-19 20:37:17 +02:00
abdo
0c7726f87e
Escape double quotes in search
2020-10-19 01:06:41 +03:00
abdo
5463b13128
Fix typing warning
2020-10-12 11:01:15 +03:00
abdo
e0bbf38850
Do sidebar switch check in browser init
...
https://github.com/ankitects/help-wanted/issues/6#issuecomment-706880794
2020-10-12 10:28:21 +03:00
abdo
3d3e68ed7a
Merge branch 'sidebar-context-menu' of https://github.com/abdnh/anki into sidebar-context-menu
2020-10-12 10:15:23 +03:00
Damien Elmes
597b81ebeb
Merge pull request #782 from johan456789/patch-1
...
fix outdated help site
2020-10-12 12:15:46 +10:00
abdo
401485834b
Move new sidebar code to a separate file
...
- Move the new sidebar code and SidebarTreeView implementation to a
new file. Old sidebar can be accessed with the shift key. The "new" sidebar
doesn't add much for now.
- Make rename_deck work with subdecks
- Fix an issue when trying to open context menu over areas not populated
with sidebar items
2020-10-10 04:42:49 +03:00
abdo
69f9543fda
Merge commit 'refs/pull/590/head' of https://github.com/ankitects/anki into sidebar2
2020-10-10 04:11:54 +03:00
johan456789
0ebe5d14eb
fix help url paths
2020-10-10 00:38:07 +08:00
abdo
2e48b437eb
Fix 'Filter' menu item in deck filters not working
2020-10-07 14:32:21 +03:00
abdo
2ebf8d5f0e
Escape ampersands in filter menu
...
Fixes ankitects/help-wanted#20
2020-10-07 13:44:33 +03:00
Damien Elmes
722454bab1
Merge pull request #769 from abdnh/escape-sidebar-terms
...
Escape browser sidebar search terms
2020-09-27 16:06:10 +10:00
Damien Elmes
86e8df58ee
fix old content appearing when flagging
...
https://forums.ankiweb.net/t/very-specific-but-quite-consistent-bug-in-browser/3685
2020-09-27 12:31:25 +10:00
abdo
9ff8aa4830
Escape sidebar search terms
2020-09-25 21:05:34 +03:00
abdo
7aaf22b0a2
Fix previewer not refreshing when selecting multiple cards in browser
2020-09-24 07:05:16 +03:00
Damien Elmes
f32d773e25
set_deck()
2020-09-03 17:42:46 +10:00
Damien Elmes
9f51347e1e
move bury/suspend into backend
2020-09-01 10:24:38 +10:00
Henrik Giesel
8a3f6d72c7
Merge branch 'master' into resethook
2020-08-17 12:39:09 +02:00
Damien Elmes
e573ed3eb6
close edit current window when card deleted
...
https://forums.ankiweb.net/t/bug-report-editor-updating-non-existing-card/2117
2020-08-17 20:07:48 +10:00
Henrik Giesel
747c8532c2
Create ResetReason enum
2020-08-16 18:56:32 +02:00
Henrik Giesel
7bb4df13d9
Reorder + make all parameters optional
2020-08-16 18:56:32 +02:00
Henrik Giesel
0b9d7b2cb8
Satisfy formatter
2020-08-16 18:56:32 +02:00
Henrik Giesel
ea6eb2ba3b
Add new use of requireReset
2020-08-16 18:56:32 +02:00
Arthur Milchior
e3e929fed2
Search_model has context
...
I have an add-on which allow to open multiple windows. So would like to know which browser has done the search. This
would allow me to have browser with various setting. In particular, I've an add-on which allow to show a single line by
note, and I would like for some browser to have this feature on and for some other to have this feature off.
2020-08-13 19:46:14 +02:00
Damien Elmes
c366f07e65
find/replace completer should be case sensitive
...
https://forums.ankiweb.net/t/bug-report-search-and-replace/2037
2020-08-09 12:10:34 +10:00
Damien Elmes
961789562e
refresh tag list after clearing unused
2020-07-31 13:33:41 +10:00
Matt Krump
1317b9f2b5
Fix browser.py import sorting
2020-07-26 13:16:06 -06:00
Matt Krump
0d8979f05e
Cast set to list to fix mypy failure in browser.py
2020-07-26 13:00:06 -06:00
Matt Krump
f27d465d69
Turn on check_untyped_defs for aqt.browser
...
* Turn on check_untyped_defs for aqt.browser
* Add type hints to browser
2020-07-25 17:31:49 -06:00
Damien Elmes
d8ff54c884
fix preview not updating on edit
...
https://forums.ankiweb.net/t/modification-and-preview/1331
2020-07-24 11:57:22 +10:00
Damien Elmes
33317d41b3
update edited/changed column labels
...
https://github.com/ankitects/anki/pull/674/files
2020-06-29 18:34:03 +10:00
Damien Elmes
f5694a7e4a
migrate card stats to backend
...
Currently this renders the HTML directly like the previous Python
implementation - doing it in JS would probably make more sense in the
future.
2020-06-15 17:22:16 +10:00
Damien Elmes
ef5f37efef
Merge pull request #650 from evandroforks/remember_last_inputs
...
Remember last inputs for Find and Replace and Duplicates Find
2020-06-09 14:43:58 +10:00
Damien Elmes
6d7be475e6
catch invalid regex in search
...
https://github.com/ankitects/anki/pull/652
2020-06-09 11:46:07 +10:00
evandrocoan
650d7ddb8b
Renamed save_combo_index to save_combo_index_for_session
2020-06-08 16:23:28 -03:00
evandrocoan
5949f2b7cc
Renamed new function on qt/aqt/utils.py to snake case
2020-06-08 01:35:31 -03:00
evandrocoan
b351a41f6c
Set to browser.py finddupes.ui remember the last selected field
...
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00
evandrocoan
3c8d6eb802
Renamed setupComboBoxHistory to restoreComboHisotory,
...
saveComboActiveIndex to saveComboIndex, saveComboBoxHistory to
saveComboHistory and restoreComboActiveIndex to restoreComboIndex.
2020-06-08 01:35:31 -03:00
evandrocoan
bada70a7d6
Set to browser.py finddupes.ui remember the last search text
...
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00
evandrocoan
074be2bfb5
Set to browser.py findreplace.ui remember the last selected field
...
by creating saveComboActiveIndex and restoreComboActiveIndex.
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00
evandrocoan
7095eb41a2
Set to browser.py findreplace.ui remember the last regex/case
...
by creating the saveIsChecked and restoreIsChecked.
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00
evandrocoan
8c2cd37501
Created the setupComboBoxHistory and saveComboBoxHistory to remove
...
duplicated/common code.
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00
evandrocoan
fc4a3b85cf
Set to remember the last replace input for findreplace.ui
...
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00
evandrocoan
c27c5a523d
Set to remember the last find input for findreplace.ui
...
https://anki.tenderapp.com/discussions/ankidesktop/39468-find-and-replace-does-not-remember-the-input-from-last-time
2020-06-08 01:35:31 -03:00