MCPcopy Index your code
hub / github.com/LunaticHacker/lemmy-terminal-viewer

github.com/LunaticHacker/lemmy-terminal-viewer @v0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.0 ↗ · + Follow
54 symbols 76 edges 8 files 11 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Lemmy-Terminal-Viewer

Terminal User Interface for lemmy for Linux Terminals (should work in MacOs but i can't test)

Install and Usage

Linux

  • Download ltv-linux.tar.gz from releases
  • Navigate to download location
  • Extract it with tar -xf ltv-linux.tar.gz
  • You can now execute the file using ./ltv
  • To Install globally move the executable to /usr/bin with sudo mv ./ltv /usr/bin

Mac

Build the project yourself with cargo (no offical support)

Loggin In

You can log in to as many accounts as you want in any number of instances

To add an account run

ltv login

You will be prompted to provide login details, if you successfully authenticate you will be redirected to your Feed;

To log in to an already added account, run

ltv instance.url username_or_email

Or you can always browse without logging in by running

ltv instance.url

Setting up configs (Optional)

Path for storing configs

On Linux: /home/alice/.config/ltv/

On Mac: /Users/Alice/Library/Application Support/dev.ltv.ltv/

copy the sample config rename it to ltv.toml and save to the path given above and finally make the changes you desire. All configs are explained in the sample config

Navigation

  • Navigation is based on Arrow keys (for now)

  • use ⬆️ and ⬇️ keys to traverse lists of posts and comments

  • when viewing a post press ⬇️ to see it's comments

  • press ➡️ to see a comment's replies and ⬅️ to go back

Browsing communities

In the default view press " i " to enter edit-mode to select community, enter the name of community and press ➡️ to submit. use ⬅️ to exit editing mode.

Core symbols most depended-on inside this repo

get_posts
called by 7
src/api.rs
unselect
called by 5
src/app.rs
prepend_https
called by 4
src/utils.rs
c_unselect
called by 4
src/app.rs
r_unselect
called by 4
src/app.rs
stringify
called by 3
src/config.rs
sort
called by 3
src/utils.rs
get_comments
called by 3
src/api.rs

Shape

Class 20
Method 16
Function 15
Enum 3

Languages

Rust100%

Modules by API surface

src/api.rs18 symbols
src/app.rs10 symbols
src/utils.rs8 symbols
src/event.rs7 symbols
src/auth.rs4 symbols
src/ui.rs3 symbols
src/config.rs3 symbols
src/main.rs1 symbols

For agents

$ claude mcp add lemmy-terminal-viewer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page