Oliver Kiddle
0d2c71d2ef
seq: use of ^ should not produce a "parse" error when parent isn't found
...
Closes : #57 [via git-merge-pr]
7 years ago
Oliver Kiddle
8e833606c1
seq: parse_relnum: initial + in stop part of a message range selects relative to the start
...
So, e.g 4:+5 is the same as 4:9
Closes : #44 [via git-merge-pr]
7 years ago
Oliver Kiddle
7d66bb8db7
seq: parse_range: = _ and ^ default to being relative to cur instead of message 1
7 years ago
Oliver Kiddle
ef65274d43
seq: parse_relnum: fix for thread message syntax relative to . or $
...
With a message such as .^ specified, strtol() was used on the caret.
On Linux this worked by accident because strtol() doesn't return
an error but it fails on, e.g. FreeBSD. Furthermore, it was not
possible to specify relative offsets after $.
7 years ago
Leah Neukirchen
8649f9c225
seq: blaze822_seq_open: display error when opening the sequence failed
7 years ago
Duncaen
537282d6af
seq: fix selecting subthreads at the end of sequences and add test cases
8 years ago
Leah Neukirchen
2b4e3aa66d
clean up whitespace
8 years ago
Christian Neukirchen
b93b9303da
seq: avoid infinite loop in "mscan -n ."
8 years ago
Christian Neukirchen
b4a8090f75
seq: slurp the file instead of mmap
...
mmap is not robust when there are writes possible.
8 years ago
Ivy Foster
ca8cef1660
Add $MBLAZE environment variable to set profile location
...
As a side benefit, all callers of blaze822_home_file need only pass
the filename, so the base directory is set in only one place.
8 years ago
Christian Neukirchen
8d3fa82d82
seq: blaze822_home_file: guard missing entry in /etc/passwd or empty $HOME
8 years ago
Christian Neukirchen
0c381fa2cb
seq: blaze822_seq_cur: use void prototype
8 years ago
Christian Neukirchen
c9c5346e63
seq: add $MAILDOT to override the value of .
8 years ago
Christian Neukirchen
fd06b1d466
seq: exit with 2 on fatal parsing error
8 years ago
Christian Neukirchen
f3c6724830
seq: parse_parent: bump previndent size
8 years ago
Christian Neukirchen
1d67157f09
seq: add thread selectors
8 years ago
Christian Neukirchen
77d0498b6c
seq: fix message number reporting when using iterdir
8 years ago
Christian Neukirchen
41474c2e68
rename .santoku to .mblaze
8 years ago
Christian Neukirchen
2fc528e8ec
seq: don't crash when cur link doesn't exist
8 years ago
Christian Neukirchen
122e0f4426
seq: blaze822_seq_next: fix mseq -n .
8 years ago
Christian Neukirchen
f28e1c0158
seq: parse .: correctly
8 years ago
Christian Neukirchen
5d9663a980
guard DT_* usage
...
It's a shortcut anyway, just leave it out
8 years ago
Christian Neukirchen
aa31382413
seq: blaze822_seq_next: special case for plain "."
...
It may be outside the sequence, still resolve it.
8 years ago
Christian Neukirchen
2b81707c51
rename map to seq
...
The old terminology didn't make much sense to users.
8 years ago
Christian Neukirchen
1a4bcc0e6d
seq: rename iterfile to iterdir
8 years ago
Christian Neukirchen
be75b39123
seq: fix parsing of plain .
8 years ago
Christian Neukirchen
6c1e0d8d56
seq: add blaze822_loop1 for easier argument overriding
8 years ago
Christian Neukirchen
9a3d45785e
seq: blaze822_loop: drop - for stdin (conflicts with .-1)
8 years ago
Christian Neukirchen
1547d2a0e2
seq: clean up
...
Found by clang-analyzer.
8 years ago
Christian Neukirchen
31b4db3580
seq: iterate over dirs and cur/ of maildirs
8 years ago
Christian Neukirchen
6aad1db77c
seq: export blaze822_home_file
8 years ago
Christian Neukirchen
dd40aabd81
seq: guard misparse
8 years ago
Christian Neukirchen
9fc77fc4b8
seq: blaze822_loop: count file arguments too
8 years ago
Christian Neukirchen
a686b54594
seq: move map/cur to ~/.santoku
8 years ago
Christian Neukirchen
22f456a2a0
clean up header includes
8 years ago
Christian Neukirchen
08032f89ba
seq: import most parts of mseq, make blaze822_loop resolve ranges
8 years ago
Christian Neukirchen
796531b22d
mseq: extract code into seq.c
8 years ago