MCPcopy Create free account
hub / github.com/Autoparallel/learner / selected_paper

Method selected_paper

crates/learnerd/src/tui/state.rs:125–127  ·  view source on GitHub ↗

Returns a reference to the currently selected paper. Returns None if no paper is selected (should never happen in practice as we always maintain a selection).

(&self)

Source from the content-addressed store, hash-verified

123 /// Returns None if no paper is selected (should never happen in practice
124 /// as we always maintain a selection).
125 pub fn selected_paper(&self) -> Option<&Paper> {
126 self.selected.selected().map(|i| &self.papers[i])
127 }
128
129 /// Handles button inputs in the home page
130 pub fn handle_input(&mut self, key: KeyCode, modifiers: KeyModifiers) -> bool {

Callers 2

drawMethod · 0.80
handle_open_pdfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected