Change tag display
This commit is contained in:
parent
bf79085e38
commit
de189e325b
@ -87,7 +87,7 @@ def command(conf, args):
|
|||||||
rp = Repository(conf)
|
rp = Repository(conf)
|
||||||
|
|
||||||
if citekeyOrTag is None:
|
if citekeyOrTag is None:
|
||||||
ui.message(color.dye_out(' '.join(sorted(rp.get_tags())), 'tag'))
|
ui.message(color.dye_out(', '.join(sorted(rp.get_tags())), 'tag'))
|
||||||
else:
|
else:
|
||||||
not_citekey = False
|
not_citekey = False
|
||||||
try:
|
try:
|
||||||
@ -97,7 +97,7 @@ def command(conf, args):
|
|||||||
if not not_citekey:
|
if not not_citekey:
|
||||||
p = rp.pull_paper(citekeyOrTag)
|
p = rp.pull_paper(citekeyOrTag)
|
||||||
if tags is None:
|
if tags is None:
|
||||||
ui.message(color.dye_out(' '.join(sorted(p.tags)), 'tag'))
|
ui.message(color.dye_out(', '.join(sorted(p.tags)), 'tag'))
|
||||||
else:
|
else:
|
||||||
add_tags, remove_tags = _tag_groups(_parse_tag_seq(tags))
|
add_tags, remove_tags = _tag_groups(_parse_tag_seq(tags))
|
||||||
for tag in add_tags:
|
for tag in add_tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user