Sorting spec syntax refinement to allow one-liners like: sorting-spec: \< a-z
This commit is contained in:
parent
9dbd9fdd03
commit
1915d59cf9
|
@ -95,12 +95,12 @@ target-folder: Sandbox
|
||||||
> created
|
> created
|
||||||
|
|
||||||
target-folder: Abcd efgh ijk
|
target-folder: Abcd efgh ijk
|
||||||
> a-z
|
\> a-z
|
||||||
Plain text spec bla bla bla (matches files and folders)...
|
Plain text spec bla bla bla (matches files and folders)...
|
||||||
/:files files only matching
|
/:files files only matching
|
||||||
> a-z
|
> a-z
|
||||||
/folders folders only matching
|
/folders folders only matching
|
||||||
< a-z
|
\< a-z
|
||||||
% some-file (or folder)
|
% some-file (or folder)
|
||||||
/:files. sort....md
|
/:files. sort....md
|
||||||
% Trailer item
|
% Trailer item
|
||||||
|
|
|
@ -148,7 +148,9 @@ const AttrLexems: { [key: string]: Attribute } = {
|
||||||
// Concise abbreviated equivalents
|
// Concise abbreviated equivalents
|
||||||
'::::': Attribute.TargetFolder,
|
'::::': Attribute.TargetFolder,
|
||||||
'<': Attribute.OrderAsc,
|
'<': Attribute.OrderAsc,
|
||||||
'>': Attribute.OrderDesc
|
'\\<': Attribute.OrderAsc, // to allow single-liners in YAML
|
||||||
|
'>': Attribute.OrderDesc,
|
||||||
|
'\\>': Attribute.OrderDesc // to allow single-liners in YAML
|
||||||
}
|
}
|
||||||
|
|
||||||
const CURRENT_FOLDER_SYMBOL: string = '.'
|
const CURRENT_FOLDER_SYMBOL: string = '.'
|
||||||
|
|
Loading…
Reference in New Issue