mirror of https://github.com/Calamitous/iris.git
Break the replies up a bit for readability
This commit is contained in:
parent
898fa4e5ef
commit
22372906cd
9
iris.rb
9
iris.rb
|
@ -3,13 +3,13 @@
|
||||||
# MVP: Complete!
|
# MVP: Complete!
|
||||||
#
|
#
|
||||||
# Reading/Status:
|
# Reading/Status:
|
||||||
|
# TODO: Add tests
|
||||||
|
# TODO: CLI options for scripting
|
||||||
# TODO: Add "read" list
|
# TODO: Add "read" list
|
||||||
# TODO: Add read/unread count
|
# TODO: Add read/unread count
|
||||||
# TODO: Create read file for current user if it doesn't exist
|
# TODO: Create read file for current user if it doesn't exist
|
||||||
# TODO: CLI options for scripting
|
|
||||||
#
|
#
|
||||||
# Tech debt:
|
# Tech debt:
|
||||||
# TODO: Add tests
|
|
||||||
# TODO: Reeeeefactor...
|
# TODO: Reeeeefactor...
|
||||||
# TODO: Split helptext into separate file?
|
# TODO: Split helptext into separate file?
|
||||||
# TODO: Move all puts into Display class
|
# TODO: Move all puts into Display class
|
||||||
|
@ -21,6 +21,8 @@
|
||||||
# TODO: Let Message initialization accept params as a hash
|
# TODO: Let Message initialization accept params as a hash
|
||||||
#
|
#
|
||||||
# Fancify interface:
|
# Fancify interface:
|
||||||
|
# TODO: Gracefully handle attempt to "r 1 message"
|
||||||
|
# TODO: Highlight names for readability
|
||||||
# TODO: Use ENV for rows and cols of display? (No)
|
# TODO: Use ENV for rows and cols of display? (No)
|
||||||
# TODO: Pagination?
|
# TODO: Pagination?
|
||||||
# TODO: Make nicer topic display
|
# TODO: Make nicer topic display
|
||||||
|
@ -249,7 +251,7 @@ class Message
|
||||||
end
|
end
|
||||||
|
|
||||||
def leader_text
|
def leader_text
|
||||||
is_topic? ? '***' : '==='
|
is_topic? ? '***' : ' === REPLY==='
|
||||||
end
|
end
|
||||||
|
|
||||||
def verb_text
|
def verb_text
|
||||||
|
@ -260,6 +262,7 @@ class Message
|
||||||
error_marker = valid? ? nil : '### THIS MESSAGE HAS THE FOLLOWING ERRORS ###'
|
error_marker = valid? ? nil : '### THIS MESSAGE HAS THE FOLLOWING ERRORS ###'
|
||||||
error_follower = valid? ? nil : '### THIS MESSAGE MAY BE CORRUPT OR TAMPERED WITH ###'
|
error_follower = valid? ? nil : '### THIS MESSAGE MAY BE CORRUPT OR TAMPERED WITH ###'
|
||||||
[
|
[
|
||||||
|
'',
|
||||||
"#{leader_text} On #{timestamp}, #{author} #{verb_text}...",
|
"#{leader_text} On #{timestamp}, #{author} #{verb_text}...",
|
||||||
error_marker,
|
error_marker,
|
||||||
errors,
|
errors,
|
||||||
|
|
Loading…
Reference in New Issue