Skip to content

Commit

Permalink
fix vim option only working after reopen
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonus committed Sep 17, 2023
1 parent 62595f4 commit 2c84bd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Vim keybindings included.
## How to use
You can download a prebuilt binary from the [releases](https://github.com/dhonus/arcanum/releases) page. Only linux tested.

You can build arcanum yourself by running `npm install` and `npm run tauri build` in the root of the project.
You can build arcanum yourself by completing [setting up](https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-linux) and running `npm install` and `npm run tauri build` in the root of the project.

### Key bindings
|key|action|
Expand Down
3 changes: 2 additions & 1 deletion src/lib/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let selected_element;
let selected_column;
let y_scroll;
let vim;
let vim = false;
let browser;
onMount(async () => {
Expand Down Expand Up @@ -54,6 +54,7 @@
vim = !vim;
localStorage.setItem("vim", String(vim));
setTimeout(() => (event.target.checked = vim), 0);
v.set(vim);
}
function browser_change(event) {
browser = !browser;
Expand Down

0 comments on commit 2c84bd6

Please sign in to comment.