Coder Social home page Coder Social logo

tui-chan's People

Contributors

dxrcy avatar tuqqu avatar unclebela 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

Watchers

 avatar  avatar  avatar

tui-chan's Issues

Opening images

It would be nice to be able to directly open images or links in default web browser when pressing enter key or with a shortcut key . I dont know much about coding , so I dont know if it is possible , but I wanted to ask anyway .

Vim keybinds?

Is there a way to change keybinds, or use vim keybinds?
if not, no worry!

Word wrap does not work

Words get cut off in long posts. Does not seem to be affected by terminal window size. Works fine in fullscreen view.
Screenshot 2022-06-22 at 17 30 18

Unexpected Shutdown When Selecting Board

I couldn't determine if this behavior is intended in the application, but when the application is just started and the user presses 'D' to select a Board from the BoardList, the application completely shuts down, similar to pressing 'Q'.

Upon inspecting the main.rs application loop, it appears that this behavior is arising from the following code section:

                 _ if input == keybinds.right => {

                    ...

                    match selected_field {
                        SelectedField::ThreadList => {
                            selected_field = SelectedField::Thread;
                            app.set_shown_thread(true);
                            app.set_shown_board_list(false);

                            let mut thread: Vec<ThreadPost> = vec![];
                            runtime.block_on(async {
                                let result = client
                                    .get_thread(
                                        app.selected_board().board(),
                                        app.selected_thread().posts().first().unwrap().no() as u64,
                                    )
                                    .await;
                                match result {
                                    Ok(data) => thread = data,
                                    Err(err) => eprintln!("{:#?}", err),
                                };

                                app.fill_thread(thread);
                                app.thread.advance_by(1);
                            });
                        }
                        _ => {}
                    };
                }

                ...
                            
                };

At the start of the application, no board is selected. Therefore, when attempting to match the selected_field, the application terminates.

If this behavior is intended, we can consider closing this PR. However, it seems a bit odd to close the app without intending to do so. A potential fix would be to ignore the user input if there is no selected_field set.

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.