tuqqu / tui-chan Goto Github PK
View Code? Open in Web Editor NEWTerminal User Interface for 4chan
License: MIT License
Terminal User Interface for 4chan
License: MIT License
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 .
Is there a way to change keybinds, or use vim keybinds?
if not, no worry!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.