| 1 |
Description: Use gdamore tcell instead of mau.fi fork |
| 2 |
Author: Nilesh Patra <[email protected]> |
| 3 |
Last-Update: 2024-04-09 |
| 4 |
--- a/lib/ansimage/ansimage.go |
| 5 |
+++ b/lib/ansimage/ansimage.go |
| 6 |
@@ -27,7 +27,7 @@ |
| 7 |
_ "golang.org/x/image/tiff" // initialize decoder |
| 8 |
_ "golang.org/x/image/webp" // initialize decoder |
| 9 |
|
| 10 |
|
| 11 |
+ "github.com/gdamore/tcell/v2" |
| 12 |
|
| 13 |
"maunium.net/go/gomuks/debug" |
| 14 |
"maunium.net/go/gomuks/ui/messages/tstring" |
| 15 |
--- a/ui/fuzzy-search-modal.go |
| 16 |
+++ b/ui/fuzzy-search-modal.go |
| 17 |
@@ -24,7 +24,7 @@ |
| 18 |
"github.com/lithammer/fuzzysearch/fuzzy" |
| 19 |
|
| 20 |
"go.mau.fi/mauview" |
| 21 |
|
| 22 |
+ "github.com/gdamore/tcell/v2" |
| 23 |
|
| 24 |
"maunium.net/go/mautrix/id" |
| 25 |
|
| 26 |
--- a/ui/help-modal.go |
| 27 |
+++ b/ui/help-modal.go |
| 28 |
@@ -2,7 +2,7 @@ |
| 29 |
|
| 30 |
import ( |
| 31 |
"go.mau.fi/mauview" |
| 32 |
|
| 33 |
+ "github.com/gdamore/tcell/v2" |
| 34 |
|
| 35 |
"maunium.net/go/gomuks/config" |
| 36 |
) |
| 37 |
--- a/ui/member-list.go |
| 38 |
+++ b/ui/member-list.go |
| 39 |
@@ -24,7 +24,7 @@ |
| 40 |
"github.com/mattn/go-runewidth" |
| 41 |
|
| 42 |
"go.mau.fi/mauview" |
| 43 |
|
| 44 |
+ "github.com/gdamore/tcell/v2" |
| 45 |
|
| 46 |
"maunium.net/go/mautrix/event" |
| 47 |
"maunium.net/go/mautrix/id" |
| 48 |
--- a/ui/message-view.go |
| 49 |
+++ b/ui/message-view.go |
| 50 |
@@ -26,7 +26,7 @@ |
| 51 |
sync "github.com/sasha-s/go-deadlock" |
| 52 |
|
| 53 |
"go.mau.fi/mauview" |
| 54 |
|
| 55 |
+ "github.com/gdamore/tcell/v2" |
| 56 |
|
| 57 |
"maunium.net/go/mautrix/event" |
| 58 |
"maunium.net/go/mautrix/id" |
| 59 |
--- a/ui/messages/base.go |
| 60 |
+++ b/ui/messages/base.go |
| 61 |
@@ -25,7 +25,7 @@ |
| 62 |
"maunium.net/go/mautrix/id" |
| 63 |
|
| 64 |
"go.mau.fi/mauview" |
| 65 |
|
| 66 |
+ "github.com/gdamore/tcell/v2" |
| 67 |
|
| 68 |
"maunium.net/go/gomuks/config" |
| 69 |
"maunium.net/go/gomuks/matrix/muksevt" |
| 70 |
--- a/ui/messages/expandedtextmessage.go |
| 71 |
+++ b/ui/messages/expandedtextmessage.go |
| 72 |
@@ -21,7 +21,7 @@ |
| 73 |
"time" |
| 74 |
|
| 75 |
"go.mau.fi/mauview" |
| 76 |
|
| 77 |
+ "github.com/gdamore/tcell/v2" |
| 78 |
|
| 79 |
"maunium.net/go/gomuks/matrix/muksevt" |
| 80 |
|
| 81 |
--- a/ui/messages/filemessage.go |
| 82 |
+++ b/ui/messages/filemessage.go |
| 83 |
@@ -27,7 +27,7 @@ |
| 84 |
"maunium.net/go/mautrix/id" |
| 85 |
|
| 86 |
"go.mau.fi/mauview" |
| 87 |
|
| 88 |
+ "github.com/gdamore/tcell/v2" |
| 89 |
|
| 90 |
"maunium.net/go/gomuks/config" |
| 91 |
"maunium.net/go/gomuks/debug" |
| 92 |
--- a/ui/messages/html/base.go |
| 93 |
+++ b/ui/messages/html/base.go |
| 94 |
@@ -19,7 +19,7 @@ |
| 95 |
"fmt" |
| 96 |
|
| 97 |
"go.mau.fi/mauview" |
| 98 |
|
| 99 |
+ "github.com/gdamore/tcell/v2" |
| 100 |
) |
| 101 |
|
| 102 |
type BaseEntity struct { |
| 103 |
--- a/ui/messages/html/codeblock.go |
| 104 |
+++ b/ui/messages/html/codeblock.go |
| 105 |
@@ -18,7 +18,7 @@ |
| 106 |
|
| 107 |
import ( |
| 108 |
"go.mau.fi/mauview" |
| 109 |
|
| 110 |
+ "github.com/gdamore/tcell/v2" |
| 111 |
) |
| 112 |
|
| 113 |
type CodeBlockEntity struct { |
| 114 |
--- a/ui/messages/html/entity.go |
| 115 |
+++ b/ui/messages/html/entity.go |
| 116 |
@@ -18,7 +18,7 @@ |
| 117 |
|
| 118 |
import ( |
| 119 |
"go.mau.fi/mauview" |
| 120 |
|
| 121 |
+ "github.com/gdamore/tcell/v2" |
| 122 |
) |
| 123 |
|
| 124 |
// AdjustStyleFunc is a lambda function type to edit an existing tcell Style. |
| 125 |
--- a/ui/messages/html/parser.go |
| 126 |
+++ b/ui/messages/html/parser.go |
| 127 |
@@ -29,7 +29,7 @@ |
| 128 |
"golang.org/x/net/html" |
| 129 |
"mvdan.cc/xurls/v2" |
| 130 |
|
| 131 |
|
| 132 |
+ "github.com/gdamore/tcell/v2" |
| 133 |
|
| 134 |
"maunium.net/go/mautrix/event" |
| 135 |
"maunium.net/go/mautrix/id" |
| 136 |
--- a/ui/messages/html/spoiler.go |
| 137 |
+++ b/ui/messages/html/spoiler.go |
| 138 |
@@ -21,7 +21,7 @@ |
| 139 |
"strings" |
| 140 |
|
| 141 |
"go.mau.fi/mauview" |
| 142 |
|
| 143 |
+ "github.com/gdamore/tcell/v2" |
| 144 |
) |
| 145 |
|
| 146 |
type SpoilerEntity struct { |
| 147 |
--- a/ui/messages/htmlmessage.go |
| 148 |
+++ b/ui/messages/htmlmessage.go |
| 149 |
@@ -18,7 +18,7 @@ |
| 150 |
|
| 151 |
import ( |
| 152 |
"go.mau.fi/mauview" |
| 153 |
|
| 154 |
+ "github.com/gdamore/tcell/v2" |
| 155 |
|
| 156 |
"maunium.net/go/gomuks/matrix/muksevt" |
| 157 |
|
| 158 |
--- a/ui/messages/parser.go |
| 159 |
+++ b/ui/messages/parser.go |
| 160 |
@@ -20,7 +20,7 @@ |
| 161 |
"fmt" |
| 162 |
"strings" |
| 163 |
|
| 164 |
|
| 165 |
+ "github.com/gdamore/tcell/v2" |
| 166 |
|
| 167 |
"maunium.net/go/mautrix/event" |
| 168 |
"maunium.net/go/mautrix/id" |
| 169 |
--- a/ui/messages/redactedmessage.go |
| 170 |
+++ b/ui/messages/redactedmessage.go |
| 171 |
@@ -18,7 +18,7 @@ |
| 172 |
|
| 173 |
import ( |
| 174 |
"go.mau.fi/mauview" |
| 175 |
|
| 176 |
+ "github.com/gdamore/tcell/v2" |
| 177 |
|
| 178 |
"maunium.net/go/gomuks/matrix/muksevt" |
| 179 |
|
| 180 |
--- a/ui/messages/tstring/cell.go |
| 181 |
+++ b/ui/messages/tstring/cell.go |
| 182 |
@@ -20,7 +20,7 @@ |
| 183 |
"github.com/mattn/go-runewidth" |
| 184 |
|
| 185 |
"go.mau.fi/mauview" |
| 186 |
|
| 187 |
+ "github.com/gdamore/tcell/v2" |
| 188 |
) |
| 189 |
|
| 190 |
type Cell struct { |
| 191 |
--- a/ui/messages/tstring/string.go |
| 192 |
+++ b/ui/messages/tstring/string.go |
| 193 |
@@ -23,7 +23,7 @@ |
| 194 |
"github.com/mattn/go-runewidth" |
| 195 |
|
| 196 |
"go.mau.fi/mauview" |
| 197 |
|
| 198 |
+ "github.com/gdamore/tcell/v2" |
| 199 |
) |
| 200 |
|
| 201 |
type TString []Cell |
| 202 |
--- a/ui/password-modal.go |
| 203 |
+++ b/ui/password-modal.go |
| 204 |
@@ -21,7 +21,7 @@ |
| 205 |
"strings" |
| 206 |
|
| 207 |
"go.mau.fi/mauview" |
| 208 |
|
| 209 |
+ "github.com/gdamore/tcell/v2" |
| 210 |
) |
| 211 |
|
| 212 |
type PasswordModal struct { |
| 213 |
--- a/ui/room-list.go |
| 214 |
+++ b/ui/room-list.go |
| 215 |
@@ -25,7 +25,7 @@ |
| 216 |
sync "github.com/sasha-s/go-deadlock" |
| 217 |
|
| 218 |
"go.mau.fi/mauview" |
| 219 |
|
| 220 |
+ "github.com/gdamore/tcell/v2" |
| 221 |
|
| 222 |
"maunium.net/go/mautrix/id" |
| 223 |
|
| 224 |
--- a/ui/room-view.go |
| 225 |
+++ b/ui/room-view.go |
| 226 |
@@ -28,7 +28,7 @@ |
| 227 |
"github.com/zyedidia/clipboard" |
| 228 |
|
| 229 |
"go.mau.fi/mauview" |
| 230 |
|
| 231 |
+ "github.com/gdamore/tcell/v2" |
| 232 |
|
| 233 |
"maunium.net/go/mautrix" |
| 234 |
"maunium.net/go/mautrix/crypto/attachment" |
| 235 |
--- a/ui/tag-room-list.go |
| 236 |
+++ b/ui/tag-room-list.go |
| 237 |
@@ -23,7 +23,7 @@ |
| 238 |
"strconv" |
| 239 |
|
| 240 |
"go.mau.fi/mauview" |
| 241 |
|
| 242 |
+ "github.com/gdamore/tcell/v2" |
| 243 |
|
| 244 |
"maunium.net/go/gomuks/debug" |
| 245 |
|
| 246 |
--- a/ui/ui.go |
| 247 |
+++ b/ui/ui.go |
| 248 |
@@ -23,7 +23,7 @@ |
| 249 |
"github.com/zyedidia/clipboard" |
| 250 |
|
| 251 |
"go.mau.fi/mauview" |
| 252 |
|
| 253 |
+ "github.com/gdamore/tcell/v2" |
| 254 |
|
| 255 |
ifc "maunium.net/go/gomuks/interface" |
| 256 |
) |
| 257 |
--- a/ui/verification-modal.go |
| 258 |
+++ b/ui/verification-modal.go |
| 259 |
@@ -25,7 +25,7 @@ |
| 260 |
"time" |
| 261 |
|
| 262 |
"go.mau.fi/mauview" |
| 263 |
|
| 264 |
+ "github.com/gdamore/tcell/v2" |
| 265 |
|
| 266 |
"maunium.net/go/mautrix/crypto" |
| 267 |
"maunium.net/go/mautrix/event" |
| 268 |
--- a/ui/view-login.go |
| 269 |
+++ b/ui/view-login.go |
| 270 |
@@ -22,7 +22,7 @@ |
| 271 |
"github.com/mattn/go-runewidth" |
| 272 |
|
| 273 |
"go.mau.fi/mauview" |
| 274 |
|
| 275 |
+ "github.com/gdamore/tcell/v2" |
| 276 |
|
| 277 |
"maunium.net/go/mautrix" |
| 278 |
"maunium.net/go/mautrix/id" |
| 279 |
--- a/ui/view-main.go |
| 280 |
+++ b/ui/view-main.go |
| 281 |
@@ -26,7 +26,7 @@ |
| 282 |
sync "github.com/sasha-s/go-deadlock" |
| 283 |
|
| 284 |
"go.mau.fi/mauview" |
| 285 |
|
| 286 |
+ "github.com/gdamore/tcell/v2" |
| 287 |
|
| 288 |
"maunium.net/go/mautrix/id" |
| 289 |
"maunium.net/go/mautrix/pushrules" |
| 290 |
--- a/ui/widget/border.go |
| 291 |
+++ b/ui/widget/border.go |
| 292 |
@@ -18,7 +18,7 @@ |
| 293 |
|
| 294 |
import ( |
| 295 |
"go.mau.fi/mauview" |
| 296 |
|
| 297 |
+ "github.com/gdamore/tcell/v2" |
| 298 |
) |
| 299 |
|
| 300 |
// Border is a simple tview widget that renders a horizontal or vertical bar. |
| 301 |
--- a/ui/widget/color.go |
| 302 |
+++ b/ui/widget/color.go |
| 303 |
@@ -20,7 +20,7 @@ |
| 304 |
"fmt" |
| 305 |
"hash/fnv" |
| 306 |
|
| 307 |
|
| 308 |
+ "github.com/gdamore/tcell/v2" |
| 309 |
|
| 310 |
"maunium.net/go/mautrix/id" |
| 311 |
) |
| 312 |
--- a/ui/widget/util.go |
| 313 |
+++ b/ui/widget/util.go |
| 314 |
@@ -23,7 +23,7 @@ |
| 315 |
"github.com/mattn/go-runewidth" |
| 316 |
|
| 317 |
"go.mau.fi/mauview" |
| 318 |
|
| 319 |
+ "github.com/gdamore/tcell/v2" |
| 320 |
) |
| 321 |
|
| 322 |
func WriteLineSimple(screen mauview.Screen, line string, x, y int) { |
| 323 |
--- a/config/config.go |
| 324 |
+++ b/config/config.go |
| 325 |
@@ -33,7 +33,7 @@ |
| 326 |
"maunium.net/go/mautrix/pushrules" |
| 327 |
|
| 328 |
"code.rocketnine.space/tslocum/cbind" |
| 329 |
|
| 330 |
+ "github.com/gdamore/tcell/v2" |
| 331 |
|
| 332 |
"maunium.net/go/gomuks/debug" |
| 333 |
"maunium.net/go/gomuks/matrix/rooms" |