Add current-filter-to-filtered-deck action
This commit is contained in:
parent
52867dfa6c
commit
011b562038
@ -36,6 +36,7 @@ browsing-enter-tags-to-add = Enter tags to add:
|
|||||||
browsing-enter-tags-to-delete = Enter tags to delete:
|
browsing-enter-tags-to-delete = Enter tags to delete:
|
||||||
browsing-filter = Filter...
|
browsing-filter = Filter...
|
||||||
browsing-filtered = (filtered)
|
browsing-filtered = (filtered)
|
||||||
|
browsing-filter-to-deck = Current Filter to Filtered Deck...
|
||||||
browsing-find = <b>Find</b>:
|
browsing-find = <b>Find</b>:
|
||||||
browsing-find-and-replace = Find and Replace
|
browsing-find-and-replace = Find and Replace
|
||||||
browsing-find-duplicates = Find Duplicates
|
browsing-find-duplicates = Find Duplicates
|
||||||
|
@ -476,6 +476,7 @@ class Browser(QMainWindow):
|
|||||||
qconnect(f.actionSelectNotes.triggered, self.selectNotes)
|
qconnect(f.actionSelectNotes.triggered, self.selectNotes)
|
||||||
if not isMac:
|
if not isMac:
|
||||||
f.actionClose.setVisible(False)
|
f.actionClose.setVisible(False)
|
||||||
|
qconnect(f.actionFilterToDeck.triggered, self.filterToDeck)
|
||||||
# notes
|
# notes
|
||||||
qconnect(f.actionAdd.triggered, self.mw.onAddCard)
|
qconnect(f.actionAdd.triggered, self.mw.onAddCard)
|
||||||
qconnect(f.actionAdd_Tags.triggered, lambda: self.addTags())
|
qconnect(f.actionAdd_Tags.triggered, lambda: self.addTags())
|
||||||
@ -1158,6 +1159,9 @@ where id in %s"""
|
|||||||
if nids:
|
if nids:
|
||||||
ChangeModel(self, nids)
|
ChangeModel(self, nids)
|
||||||
|
|
||||||
|
def filterToDeck(self):
|
||||||
|
aqt.dialogs.open("DynDeckConfDialog", self.mw, self.form.searchEdit.lineEdit().text())
|
||||||
|
|
||||||
# Preview
|
# Preview
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -230,6 +230,8 @@
|
|||||||
<addaction name="actionInvertSelection"/>
|
<addaction name="actionInvertSelection"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionClose"/>
|
<addaction name="actionClose"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionFilterToDeck"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuJump">
|
<widget class="QMenu" name="menuJump">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -583,6 +585,14 @@
|
|||||||
<string notr="true">Ctrl+Shift+E</string>
|
<string notr="true">Ctrl+Shift+E</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionFilterToDeck">
|
||||||
|
<property name="text">
|
||||||
|
<string>BROWSING_FILTER_TO_DECK</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string notr="true">Ctrl+Q</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="icons.qrc"/>
|
<include location="icons.qrc"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user