Skip to content

Commit

Permalink
modify variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Aug 6, 2024
1 parent 8fd6ddc commit 80ae4fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/jnv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,14 @@ impl Jnv {
}
}

fn content_to_clipboard(&mut self) {
fn store_content_to_clipboard(&mut self) {
self.store_to_clipboard(
&self.json.json_str(),
"Copied selected content to clipboard!",
);
}

fn query_to_clipboard(&mut self) {
fn store_query_to_clipboard(&mut self) {
self.store_to_clipboard(
&self
.filter_editor
Expand Down
4 changes: 2 additions & 2 deletions src/jnv/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub fn default(event: &Event, jnv: &mut crate::jnv::Jnv) -> anyhow::Result<Promp
kind: KeyEventKind::Press,
state: KeyEventState::NONE,
}) => {
jnv.content_to_clipboard();
jnv.store_content_to_clipboard();
}

Event::Key(KeyEvent {
Expand All @@ -203,7 +203,7 @@ pub fn default(event: &Event, jnv: &mut crate::jnv::Jnv) -> anyhow::Result<Promp
kind: KeyEventKind::Press,
state: KeyEventState::NONE,
}) => {
jnv.query_to_clipboard();
jnv.store_query_to_clipboard();
}

Event::Key(KeyEvent {
Expand Down

0 comments on commit 80ae4fd

Please sign in to comment.