Code Monkey home page Code Monkey logo

gomuks's Introduction

gomuks's People

Contributors

aaronraimist avatar adamthiede avatar dec05eba avatar depate avatar ehaupt avatar evidlo avatar f0x52 avatar gsauthof avatar jcgruenhage avatar lxea avatar mxkrsv avatar n-peugnet avatar nileshpatra avatar pufferffish avatar tleb avatar tulir avatar vn-ki avatar vranki avatar wezm avatar wvffle avatar zavok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gomuks's Issues

Disconnect main package from UI

Currently the main package handles tview initialization, which means that a different UI package can't be directly plugged in. The tview initialization should be moved to the ui package.

HTML rendering

Terminals support quite a bit of formatting. Pretty much everything Riot supports except sup and sub should be doable.

Panic on running after update

Upgrading to 0cdde55, gomuks briefly displays the UI and then panics:

runtime error: index out of range
goroutine 14 [running]:
runtime/debug.Stack(0x896fc0, 0xc423698000, 0xc42327d6e0)
        /usr/local/go/src/runtime/debug/stack.go:24 +0xa7
maunium.net/go/gomuks/debug.PrettyPanic(0x7d1400, 0xa6e660)
        <ELIDED>/src/maunium.net/go/gomuks/debug/debug.go:80 +0x292
main.(*Gomuks).Recover(0xc4201b2990)
        <ELIDED>/src/maunium.net/go/gomuks/gomuks.go:120 +0x69
panic(0x7d1400, 0xa6e660)
        /usr/local/go/src/runtime/panic.go:505 +0x229
maunium.net/go/gomuks/ui/messages/parser.(*TagArray).Pop(0xc422b3c5e0, 0xc422e64a58, 0x1, 0x1)
        <ELIDED>/src/maunium.net/go/gomuks/ui/messages/parser/htmltagarray.go:67 +0x2cc
maunium.net/go/gomuks/ui/messages/parser.(*MatrixHTMLProcessor).HandleEndTag(0xc4233361e0, 0xc422e64a58, 0x1)
        <ELIDED>/src/maunium.net/go/gomuks/ui/messages/parser/htmlparser.go:120 +0x5e
maunium.net/go/gomuks/lib/htmlparser.HTMLParser.Process(0xc42363a270, 0x89c2c0, 0xc4233361e0)
        <ELIDED>/src/maunium.net/go/gomuks/lib/htmlparser/htmlparser.go:137 +0x22a
maunium.net/go/gomuks/ui/messages/parser.ParseHTMLMessage(0xc4200be180, 0xc42327dea0, 0x16, 0x1, 0xc423282658)
        <ELIDED>/src/maunium.net/go/gomuks/ui/messages/parser/htmlparser.go:183 +0x206
maunium.net/go/gomuks/ui/messages/parser.ParseMessage(0x89c260, 0xc4201b2990, 0xc4200be180, 0xc42327dea0, 0xc42365cfc0, 0xc4235761f8)
        <ELIDED>/src/maunium.net/go/gomuks/ui/messages/parser/parser.go:62 +0x2c9
maunium.net/go/gomuks/ui/messages/parser.ParseEvent(0x89c260, 0xc4201b2990, 0xc4200be180, 0xc42327dea0, 0xc4236202c0, 0x1)
        <ELIDED>/src/maunium.net/go/gomuks/ui/messages/parser/parser.go:40 +0x10a
maunium.net/go/gomuks/ui.(*MainView).ParseEvent(0xc422ff3a70, 0x89d2c0, 0xc4235720c0, 0xc42327dea0, 0x7f31e03ec4c0, 0xc4236202c0)
        <ELIDED>/src/maunium.net/go/gomuks/ui/view-main.go:470 +0x64
maunium.net/go/gomuks/ui.(*MainView).LoadHistory(0xc422ff3a70, 0xc4232b65e0, 0x1e, 0x1)
        <ELIDED>/src/maunium.net/go/gomuks/ui/view-main.go:456 +0x4c9
created by maunium.net/go/gomuks/ui.(*MainView).addRoom
        <ELIDED>/src/maunium.net/go/gomuks/ui/view-main.go:323 +0x494

Click actions for messages

Some infrastructure is required to be able to easily add click actions such as support for inline links, room pills, etc..

Slice bounds out of range in some cases when creating a new room from another client

runtime error: slice bounds out of range
goroutine 5 [running]:
runtime/debug.Stack(0x14b6520, 0xc420140070, 0xc4203b9918)
$GOROOT/runtime/debug/stack.go:24 +0xa7
maunium.net/go/gomuks/debug.PrettyPanic(0x13ecc00, 0x16a78c0)
$GOPATH/src/maunium.net/go/gomuks/debug/debug.go:97 +0x292
maunium.net/go/gomuks/debug.Recover()
$GOPATH/src/maunium.net/go/gomuks/debug/debug.go:72 +0x63
panic(0x13ecc00, 0x16a78c0)
$GOROOT/runtime/panic.go:502 +0x229
maunium.net/go/gomuks/ui.(*MessageView).replaceBuffer(0xc42034d140, 0x14bf0a0, 0xc420a1f3f0, 0x14bf0a0, 0xc4208e8000)
$GOPATH/src/maunium.net/go/gomuks/ui/message-view.go:238 +0x910
maunium.net/go/gomuks/ui.(*MessageView).AddMessage(0xc42034d140, 0x1e02000, 0xc4208e8000, 0x2)
$GOPATH/src/maunium.net/go/gomuks/ui/message-view.go:184 +0x383
maunium.net/go/gomuks/ui.(*RoomView).AddMessage(0xc420b79ea0, 0x1e02000, 0xc4208e8000, 0x1)
$GOPATH/src/maunium.net/go/gomuks/ui/room-view.go:375 +0x4d
maunium.net/go/gomuks/ui.(*MainView).LoadHistory(0xc4201dc2d0, 0xc42059c080, 0x1e, 0x1)
$GOPATH/src/maunium.net/go/gomuks/ui/view-main.go:450 +0x4ec
created by maunium.net/go/gomuks/ui.(*MainView).addRoom
$GOPATH/src/maunium.net/go/gomuks/ui/view-main.go:315 +0x441

Save message history locally

Currently, gomuks will fetch some history at each startup and more when the user requests it. To improve startup speed, it should save all the history it fetches to a local file.

App settings view

In addition to the user and room settings views (#2 and #3), the app should also have a configuration UI.

Move Message interface contents to ui package

Most of the functions in the MessageMeta and Message interfaces are only used by the UI. Especially the functions that refer to tcell.Color should be removed from the interface package to keep it reusable for potential other UI packages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.