Laurent Monin
d6739aa90a
Merge pull request #1811 from rdswift/default_naming_script
...
PICARD-563: Pad disc number if more than nine discs
2021-05-06 11:32:03 +02:00
Bob Swift
ebaa8b0191
Pad disc number if more than nine discs
2021-05-05 17:44:53 -06:00
Philipp Wolfer
da14be5585
PICARD-2205: Update syntax highlighting to allow functions starting with _ or 0-9
...
The scripting syntax definition and parser implementation allow such functions.
2021-05-05 18:18:18 +02:00
Philipp Wolfer
2ee2700b5c
PICARD-2200: Add unicode left-to-right marks only for RTL languages
...
Add the Unicode left-to-right mark U+200E only when UI language is a RTL language. This mitigates the issue of users accidentally copying those marks into their scripts, causing unwanted side effects.
2021-05-05 13:51:23 +02:00
Laurent Monin
1fdc2bc17a
Remove unused ConfigurableColumnsHeader.visible_columns property
2021-05-05 12:48:53 +02:00
Laurent Monin
f56ada9d80
Remove unused MainPanel.collapse_clusters()
2021-05-05 12:48:53 +02:00
Laurent Monin
38078740c5
Remove unused ConfigSection.__prefix_len
2021-05-05 12:48:53 +02:00
Laurent Monin
061000e4b2
Remove release_group_loaded unused signal
2021-05-05 12:48:53 +02:00
Philipp Wolfer
2acdeb77d9
PICARD-2204: Handle EOF when reading "\u"
2021-05-05 12:45:42 +02:00
Philipp Wolfer
c00c175fd3
PICARD-2204: Escape control characters when pasting into script editor
...
This prevents users accidentally inserting invisible control characters with potentially unwanted side effects.
2021-05-05 12:45:42 +02:00
Philipp Wolfer
5f6e8a0a25
PICARD-2204: Allow Unicode escape sequences in tagger script
...
This allows specifying Unicode characters as 4 digit hex values with e.g. \uFFFF.
2021-05-05 12:45:42 +02:00
Laurent Monin
3ea43252c4
Merge pull request #1805 from zas/updatecredits
...
Update credits in file headers
2021-05-04 18:28:55 +02:00
Laurent Monin
613b7b912c
Update file headers with the help of fix-header script
2021-05-04 17:27:28 +02:00
Laurent Monin
339c5187d2
Add a bunch of aliases to fix-header script
2021-05-04 17:26:32 +02:00
Philipp Wolfer
c80c79a827
INSTALL.md: Fixed link to mutagen
2021-05-04 16:02:22 +02:00
Philipp Wolfer
3aa6950d3b
Disable some pyflages checks
...
Both cannot be disabled case by case and since flake8 also checks for those conditions they are redundant anyway.
2021-05-04 15:59:21 +02:00
Philipp Wolfer
0d2ed06e60
Use new help implementation for CAATypesSelectorDialog
2021-05-04 15:41:27 +02:00
Laurent Monin
1f5668ee17
Get rid of webbrowser.goto()
...
Check if `url` passed is a key from `PICARD_URLS`, and uses the value if it is.
2021-05-04 15:41:27 +02:00
Philipp Wolfer
4a87eda65b
Add common functionality to open help to PicardDialog
2021-05-04 15:41:27 +02:00
Philipp Wolfer
2702229bf2
PICARD-2201: Add a help button to "Tags from file names" dialog
2021-05-04 13:22:14 +02:00
Philipp Wolfer
4db079399a
PICARD-1568: Pre-compile expressions for tracknum_from_filename
2021-05-01 20:50:24 +02:00
Philipp Wolfer
ef62e311dd
PICARD-1568: extended tests for tracknum_from_filename
...
Include most of the tests from test_tracknum.py. Changed a few tests as we got rid of the logic to choose the smallest of all numbers found.
2021-05-01 20:50:24 +02:00
Philipp Wolfer
19d973c36d
PICARD-1568: Improve parsing track number from filenames
...
Avoid false positives, allow some common cases only instead of parsing all numbers.
2021-05-01 20:50:24 +02:00
Philipp Wolfer
f590cedf97
Update picard.pot
2021-05-01 16:38:36 +02:00
Philipp Wolfer
8627155471
Merge pull request #1798 from phw/PICARD-2171-optional-guess-title
...
PICARD-2171: Optional guess title and tracknumber
2021-05-01 08:50:08 +02:00
Philipp Wolfer
a73e65fcc3
Allow postprocessors in File._copy_loaded_metadata
2021-04-30 20:21:52 +02:00
Philipp Wolfer
cb00cefc48
Disabled pylint no-self-use
2021-04-30 17:09:12 +02:00
Philipp Wolfer
95cc8fde92
Handle some pylint and bandit warnings
2021-04-30 17:09:12 +02:00
Philipp Wolfer
ac3d449e07
Removed unused constants from ScriptEditorPage
2021-04-30 11:58:52 +02:00
Laurent Monin
336220a3b5
Minor rewrite, code simplification ( #4 )
...
* eventFilter(): Match event.type() using a set
* toggle_documentation(): use setVisible() to simplify code
2021-04-30 11:58:52 +02:00
Bob Swift
084e162c0f
Make tagger argument non-optional. Fix incorrect reference.
2021-04-30 11:58:52 +02:00
Bob Swift
def7d9176b
Revise arguments to ScriptEditorExamples. Remove unsused parent.
2021-04-30 11:58:52 +02:00
Bob Swift
3e8634bd69
Correction to docstring
2021-04-30 11:58:52 +02:00
Bob Swift
3dd6d06897
Remove unused send_signal option.
2021-04-30 11:58:51 +02:00
Laurent Monin
9c34b67c66
Convert default_examples() to a generator ( #3 )
2021-04-30 11:58:51 +02:00
Laurent Monin
038c55dcfb
Replace example_1() & example_2() with default_examples()
...
- Use a dict for metadata
- easier to extend
2021-04-30 11:58:51 +02:00
Bob Swift
0da8d5c3c7
Missing updated file that should have been on commit cc27862. (Oops)
2021-04-30 11:58:51 +02:00
Bob Swift
b0aa93ed37
Set file types as class properties to reduce duplication.
2021-04-30 11:58:51 +02:00
Bob Swift
4c21d5b17b
Remove unused wordwrap property.
2021-04-30 11:58:51 +02:00
Bob Swift
2a85fa2a1f
Set maximum examples, tooltip and usage notes as class properties.
2021-04-30 11:58:45 +02:00
Bob Swift
be18bcbfb8
Additional code de-duplication
2021-04-30 11:51:19 +02:00
Bob Swift
1e32469a39
Create function for syncing scroll bars to remove duplicated code.
2021-04-30 11:51:19 +02:00
Bob Swift
5c68931235
Remove highlight from splitters
2021-04-30 11:51:19 +02:00
Bob Swift
27f62a7380
Highlight splitters to make them more visible.
2021-04-30 11:51:19 +02:00
Bob Swift
b67aaaf4bc
Update TODO comment.
2021-04-30 11:51:19 +02:00
Bob Swift
99f829493c
Use custom widget for documentation display from scriping options page
2021-04-30 11:51:19 +02:00
Bob Swift
8b2cbcd13f
Refactor documentation template into scripting documentation module
2021-04-30 11:51:19 +02:00
Bob Swift
a4b3b29ca0
Move ScriptingDocumentationWidget to picard.ui.widgets
2021-04-30 11:51:18 +02:00
Bob Swift
1f8b1537e0
Remove unused layout
2021-04-30 11:51:18 +02:00
Bob Swift
6c68f85af3
Make ScriptingDocumentationWidget a proper stand-alone widget.
2021-04-30 11:51:18 +02:00