With this commit it is possible to set the dev flag to true, which will allow you to send and receive chat messages in dev channels only. You can use this to test kbtui without being disruptive.
Changes:
- Stream is colored now
- Stream is formatted
- Stream has it's own formatting option
- Colors are now a style, and is a struct
- Color struct has a pretty cool functional interface
- colored mentions and PMs
- Every message uses the same function (it's dry!!)
- Colorize errors!
- Create function for visualizing errors
- colorized some of the command output!
- Color is stored in a Style
- Create a Text struct that can use to stylize strings "easily"
- Text can be used to build strings
- color highlighting on code
- added tml config support
- added different color for mention url
- Added sprintf to use formatting with PrintFeed and PrintError
Known Bugs: (added as todos whereever)
- Cannot use multiple formatting at the same time (*bold _italic_*
doesn't work
- sprintf is pretty shit
- background doesn't cover as a `block` in codeblocks
- not possible to escape sprintf thing
Changes:
- made it possible join with @ and # prepended as well
- Also made it possible if it's written in a singular string ie `@team#channel`
- also made this work with auto complete
- doesn't bug out if you do `/j @person` (with a space at the end) (which it
previously thought was a team + channel, with empty channel name
- Created new file colors.go
- Added color options to the UserConfig
- Possible to disable colors (in UserConfig)
- Fixed a bug where the login screen says `/j` and not `{cmdChar}j`
- Changed how attachments look - so it's clear it isn't just a message
saying that
- Changed how formatOutput works (to be more DRY)
- Colored unread messages
Changes to be committed:
new file: colors.go
modified: main.go
modified: userConfigs.go