1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

420 Commits

Author SHA1 Message Date
Hossein Mehrabi
a546f49e52 clean up 2018-06-03 08:12:15 -07:00
Hossein Mehrabi
e7ec7292c6 clean up, support text colors from config file 2018-06-03 08:12:15 -07:00
The Gitter Badger
66bd146aa0 Add Gitter badge 2018-06-03 08:12:15 -07:00
George Opritescu
14fcac1166 add log flags to help with debugging 2018-06-03 08:12:15 -07:00
Chris Cummer
73091d55df Update Support.md 2018-06-03 08:12:15 -07:00
deltaxflux
651f1465de Add subfolder to make pull request template working again 2018-06-03 08:12:15 -07:00
deltax
8ef0396a42 Fix version number in template
- Change version number to 0.0.4
2018-06-03 08:12:15 -07:00
Wilq
66c14a666d added git pull and checkout commands 2018-06-02 16:52:29 +02:00
Chris Cummer
c51d6bdecf Ignore the dist/ dir v0.0.4 2018-06-02 06:36:21 -07:00
Chris Cummer
052a115121 Add more explicit documentation for PrettyWeather's optional attributes 2018-06-02 06:05:38 -07:00
Chris Cummer
c1f9c7bbfb Add PrettyWeather as an experimental module 2018-06-02 06:01:29 -07:00
Chris Cummer
97123c1a6c Close #112. Merge branch 'FarhadF-master' 2018-06-02 05:31:34 -07:00
Chris Cummer
e38caedefc
Merge pull request #129 from deltaxflux/master
Minor git tweaks
2018-06-02 05:30:53 -07:00
Chris Cummer
c5617e9019 Prevent text-wrapping in PrettyWeather widget 2018-06-02 05:28:52 -07:00
Farhad Farahi
353bd1220d better error handling 2018-06-02 05:28:52 -07:00
Farhad Farahi
21ee436e8c Added PrettyWeather mod 2018-06-02 05:28:52 -07:00
Chris Cummer
5d30e09821 Add screenshot to IPInfo docs 2018-06-02 05:23:20 -07:00
deltaxflux
4d090042b5 Minor git tweaks 2018-06-02 14:03:36 +02:00
Chris Cummer
e266059a0a
Merge pull request #128 from deltaxflux/master
Add issue template and pull request template
2018-06-02 04:37:46 -07:00
deltaxflux
71663fdd17 Add issue template and pull request template 2018-06-02 12:34:54 +02:00
Chris Cummer
9e7045ca52
Merge pull request #125 from jeangovil/i101
clean up todo list
2018-06-01 23:29:04 -07:00
Chris Cummer
5ce989887f Correct spelling of IPInfo in widget title 2018-06-01 23:28:18 -07:00
Chris Cummer
957873f006 Merge branch 'FarhadF-ipinfo' 2018-06-01 23:24:59 -07:00
Hossein Mehrabi
59463d22ff clean up todo list 2018-06-02 10:49:51 +04:30
Chris Cummer
f1d044dee6 Fix #101. Thanks to @stegmanh 2018-06-01 23:15:44 -07:00
Chris Cummer
63299a701e Update install instructions in readme 2018-06-01 23:15:44 -07:00
liyiheng
fd0c79acbf Update system_info.go 2018-06-01 23:15:44 -07:00
liyiheng
4fb3edb919 Update system_info.go 2018-06-01 23:15:44 -07:00
Chris Cummer
ace2ba0b1b Add Jira JQL configuration documentation 2018-06-01 23:15:44 -07:00
Chris Cummer
f61fb10249 Add image 2018-06-01 23:12:34 -07:00
Chris Cummer
b56629b6fd Set terminal type in the config file.
Adds a "term" option that takes a terminal type (ie: vt100, xterm,
xterm-256color, etc.)

Example:

```yaml
wtf:
  term: "vt100"
```
2018-06-01 23:12:34 -07:00
Chris Cummer
bf30e8750c Create CODE_OF_CONDUCT.md 2018-06-01 23:12:34 -07:00
Bryan Austin
010c7ddbe0 Fix clocks module chronological sorting issue #98
`clock.LocalTime()` sets the location of a `time.Time` object, but
doesn't change the point in time. Since `clock.LocalTime()`
calls `time.Now()` to create the "local time", what ends up
happening is that the first `LocalTime()` is always "before" the
second one (because of the order of function calls), leading to
unstable sorting.

This change does two things to fix chronological sorting. The
first is to add a `clock.ToLocal(time.Time)` function that
acts like `clock.LocalTime()` for a given time point, so that
a single stable time point can be used throughout sorting. The
second is to do chronological sorting by comparing the string
versions of the local time, which look like (for London vs. SF):

2018-06-01 19:48:26.591550198 +0100 BST
vs.
2018-06-01 11:48:26.5915538 -0700 PDT

There may be a better way, this feels hacky-ish but works for me
on OSX.

One remaining downside is that for locations in the same time zone
(i.e. Avignon and Barcelona in the default settings), order is
determined ~randomly on startup. You could maybe append the location
to the string used for comparison to make alphabetical sorting a
fallback for equivalent times, but at least they don't jump around
anymore.
2018-06-01 23:12:34 -07:00
James Sapara
e4ce3975ae strip space and ignore empty users from who 2018-06-01 23:12:34 -07:00
Chris Cummer
2ef2e26288 Add a missing require and a missing var declaration to system_info.go 2018-06-01 23:12:34 -07:00
deltax
4a3651286e Update system_info.go 2018-06-01 23:12:34 -07:00
deltax
c252cc5022 Quick fix for #105
- add lsb_release because sw_vers doesn't work on linux 
- add system check
2018-06-01 23:12:34 -07:00
flw
b62a18a96f Feat: add an error message when WTF was failed
This is just a minor change to avoid a small number of inexperienced
users not be intimidated by a minor mistake, such as the incorrect
setting of the TERM environment variable.

I hope this will be improved a bit of user experience for let WTF
more popular.
2018-06-01 23:12:34 -07:00
Sherod Taylor
b8ee0e56f6 add optional more advanced jql queries and working usernames 2018-06-01 23:12:34 -07:00
Chris Cummer
4c620a9c3c Fix #101. Thanks to @stegmanh 2018-06-01 23:01:20 -07:00
Chris Cummer
a1bc7cfd6a
Merge pull request #124 from XanthusL/master
Update system_info.go
2018-06-01 22:55:42 -07:00
Chris Cummer
bb315f827f Update install instructions in readme 2018-06-01 22:53:36 -07:00
liyiheng
12c8693661 Update system_info.go 2018-06-02 11:43:50 +08:00
liyiheng
efdfa8d119 Update system_info.go 2018-06-02 11:41:30 +08:00
Chris Cummer
c43db75561 Merge branch 'sherodtaylor-more-advanced-jira' 2018-06-01 18:33:12 -07:00
Chris Cummer
bd68afa5a2 Add Jira JQL configuration documentation 2018-06-01 18:32:53 -07:00
Chris Cummer
f025606f9d Add image 2018-06-01 18:18:08 -07:00
Chris Cummer
96bbe03fbf Set terminal type in the config file.
Adds a "term" option that takes a terminal type (ie: vt100, xterm,
xterm-256color, etc.)

Example:

```yaml
wtf:
  term: "vt100"
```
2018-06-01 18:18:08 -07:00
Chris Cummer
f2c099a601 Create CODE_OF_CONDUCT.md 2018-06-01 18:18:08 -07:00
Bryan Austin
492438c5f5 Fix clocks module chronological sorting issue #98
`clock.LocalTime()` sets the location of a `time.Time` object, but
doesn't change the point in time. Since `clock.LocalTime()`
calls `time.Now()` to create the "local time", what ends up
happening is that the first `LocalTime()` is always "before" the
second one (because of the order of function calls), leading to
unstable sorting.

This change does two things to fix chronological sorting. The
first is to add a `clock.ToLocal(time.Time)` function that
acts like `clock.LocalTime()` for a given time point, so that
a single stable time point can be used throughout sorting. The
second is to do chronological sorting by comparing the string
versions of the local time, which look like (for London vs. SF):

2018-06-01 19:48:26.591550198 +0100 BST
vs.
2018-06-01 11:48:26.5915538 -0700 PDT

There may be a better way, this feels hacky-ish but works for me
on OSX.

One remaining downside is that for locations in the same time zone
(i.e. Avignon and Barcelona in the default settings), order is
determined ~randomly on startup. You could maybe append the location
to the string used for comparison to make alphabetical sorting a
fallback for equivalent times, but at least they don't jump around
anymore.
2018-06-01 18:18:08 -07:00