Commit Graph

112 Commits

Author SHA1 Message Date
Eric Budd c8aa13e13e Bump Iris version to 1.1.3 2024-05-04 12:07:53 -05:00
tjpcc 1515714986 use a hash set for unread topics
The "u" or "unread" command diffs two sets stored on disk: all topics, and unread messages.

A flat array was previously used for both, but this resulted in slow O(n^2) behavior.

This diff turns the unread messaegs into a hash set and uses that for the "contains" test in the loop over all topics.
2024-05-04 11:54:56 -05:00
Zachary Huang 8387df2070 prevent edit if no change made to message text 2024-05-04 11:48:49 -05:00
Zachary Crockett 467cf1d69e Fix handling of single-word hostname 2024-05-04 11:37:11 -05:00
Eric B. Budd 03dfd561b4 Bump Iris version to 1.1.2 2022-12-26 00:05:44 -06:00
Eric B. Budd d744eb023d Fix bug where "hostname" portion of author is missing or garbled 2022-12-26 00:05:44 -06:00
Eric B. Budd 972f1a8854 Bump Iris version to 1.1.1 2021-12-08 22:16:12 -06:00
Eric B. Budd ed124e7389 Try nano if /usr/bin/vim is not set 2021-12-08 22:16:12 -06:00
Eric B. Budd fea37fa4dc Make discarded message response more prominent 2021-12-08 22:16:12 -06:00
Eric B. Budd d907c7a3b3 Bump Iris version to 1.1.0 2021-11-25 01:02:07 -06:00
Eric B. Budd 93b64d33a9 Expand and tidy tests
* Update expectation style to match new Mocha requirements
* Clean up broken Startupper tests
* Flesh out various test stubs
* Clean up formatting and other odds and ends
2021-11-25 01:02:07 -06:00
Eric B. Budd 1c124349eb Minor dead code removal and tidying 2021-11-25 01:02:07 -06:00
Eric B. Budd e9164717fd Clean up unused Config code 2021-11-25 01:02:07 -06:00
Eric B. Budd 20f97b28a1 Trim out unused Corpus code 2021-11-25 01:02:07 -06:00
Eric B. Budd 13546edb82 Remove automatic reply-to feature until we can make it work right 2021-11-25 01:02:07 -06:00
Eric B. Budd 79bc357828 Change message composition, reply, and editing to external editor 2021-11-25 01:02:07 -06:00
Eric B. Budd 80d2c616ca Bump Iris version to 1.0.13 2021-09-22 00:03:28 -05:00
Eric B. Budd 06850ff6fb Fix reply ordering bug 2021-09-21 23:58:43 -05:00
Eric B. Budd 08694c1403 Bump Iris version to 1.0.12 2021-09-07 23:51:39 -05:00
Eric B. Budd 0462ada0a0 Don't include user's messages in unread counts 2021-09-07 23:51:35 -05:00
Eric B. Budd 28db4d3e20 The Documentation Donkey kicked me 2021-09-07 23:05:14 -05:00
Eric B. Budd 9fd530c41c Add feature to read next topic without typing in a message number 2021-09-07 22:44:24 -05:00
Eric B. Budd b3d3640f97 Fix crash when receiving invalid UTF-8 characters 2021-09-07 22:17:57 -05:00
Eric B. Budd 7c3fad429e Change "pop" to "mark_all_read" for clarity 2021-09-07 20:20:03 -05:00
Amarpreet Minhas 95e77eb1b1 Add a pop function to display and mark read all unread messages in the corpus 2021-09-07 20:19:31 -05:00
Lee T 35e3b6c842
Update iris.rb
add line in help file on how to quit iris
2021-02-15 16:37:28 -05:00
Eric B. Budd aebeed7c46 Automatically show unread messages when refreshing 2020-12-01 10:43:07 -05:00
Eric B. Budd bcf74fb8b4 Features and fixes for 1.0.11
* Speed up the topic listing significantly
* Add 'unread' (short form 'u') to only list topics with unread messages
* Add 'mark_unread' (short form 'm') to mark topics as read without displaying them
* Tweaks to help text
* Default main listing to unread topics instead of listing all topics
* Updates to the way screen dimensions are calculated
* Preliminaary work to support pagination
* Change permissions message from error to warning so it only shows in debug mode
2020-11-26 19:57:50 -05:00
Eric B. Budd 53b900e5b3 Fix file permission bug and bump Iris version to 1.0.10 2020-06-06 17:58:18 -04:00
Eric B. Budd b9985a6f65 Bump Iris version to 1.0.9 2020-03-07 18:27:07 -05:00
Eric B. Budd 87b0d9f6a6 Fix issue with broken color tags
https://github.com/Calamitous/iris/issues/3
2020-03-07 18:12:37 -05:00
Eric B. Budd 3789bc8dc7 Remove domain check 2020-03-07 17:52:40 -05:00
Eric B. Budd 6539bf6535 Bump Iris to version 1.0.8 2020-02-08 12:22:07 -05:00
Eric B. Budd 8e2bf30fe5 Fix error when message file exists but UID has been deleted
When a user record has been removed from `/etc/passwd` but their message file
is still associated with that UID, Iris has no way of pulling up the
user information and crashes.

This corrects that issue, and skips the file.

Additionally, a "debug" mode was added to Iris, so that we can track
down these kinds of issues without annoying regular users of the
software.

Thanks go out to ubergeek for the bug report!

Issue report: https://github.com/Calamitous/iris/issues/4
2020-02-08 12:21:59 -05:00
Eric B. Budd bb5619ef8f Refactoring and updating code to make automated testing easier 2020-02-08 12:17:13 -05:00
Eric Budd e4dea5c449 Bump version to 1.0.7 2018-05-31 12:18:59 -04:00
Eric Budd 444e5435dd Start refactoring permissions and file handling 2018-05-31 12:17:32 -04:00
Eric Budd 61fd978538 Fix unread count bug on edited messages 2018-05-25 15:43:13 -04:00
Eric Budd 1ec1849fd6 Bump version to 1.0.6 2018-05-13 01:48:58 -04:00
Eric Budd 8225291867 Include unread topic in unread message count 2018-05-13 01:48:58 -04:00
Eric Budd cb0aca4e54 Fix bug preventing replies from showing up on edited topics 2018-05-13 01:48:58 -04:00
Eric Budd 8c6dcb335e Add `undelete` command alias for `delete` 2018-05-13 01:48:58 -04:00
Eric Budd b40e621517 Remove extra whitespace from messages 2018-05-13 01:48:57 -04:00
Eric Budd 8f02df4d24 Update README.md docs for new features 2018-05-13 01:48:53 -04:00
Eric Budd ca1b68baf4 Make corruption errors stand out more 2018-05-13 00:08:13 -04:00
Eric Budd e312a44db2 Add topic column headers 2018-05-13 00:08:13 -04:00
Eric Budd 7d318d4f9d Update help text for new functionality 2018-05-13 00:08:04 -04:00
Eric Budd f722822efd Add delete/undelete functionality to messages 2018-05-12 23:34:30 -04:00
Eric Budd da11e4434d Fix truncated messages being one character too long in topic list 2018-05-11 16:26:42 -04:00
Eric Budd d4c8f81510 Move message/topic headers into frame bar 2018-05-11 16:25:20 -04:00