Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change showCharts keyboard shorcut default: "Control+c" #17

Open
larryopoly opened this issue Aug 31, 2022 · 1 comment
Open

Change showCharts keyboard shorcut default: "Control+c" #17

larryopoly opened this issue Aug 31, 2022 · 1 comment

Comments

@larryopoly
Copy link

Thanks for maintaining this repo. Is it possible/feasible to change the default shortcut for showing/hiding the charts? I often want copy amount or balance and have to right click and select copy versus just pressing Ctrl+c. Perhaps replacing this Alt+c would work?

I thought I could just update or comment out the code from here like so:

<button
  type="button"
  on:click={() => showCharts.update((v) => !v)}
  // use:keyboardShortcut={"Control+c"} <--- comment out this line
  class:closed={!$showCharts}
  class="toggle-chart"
/>

I'm not sure how to properly enter the docker container and access the files. Here's my docker-compose file if it makes any difference:

version: "3.7"
services:
  fava:
    image: yegle/fava
    ports:
      - 5000:5000
    volumes:
    - /path/to/beanfile:/data/
    environment:
      BEANCOUNT_FILE: /data/main.bean

Any guidance is helpful here, thanks.

@yegle
Copy link
Owner

yegle commented Aug 31, 2022

It would be better to report this to the upstream.

If you are OK with building this image locally I believe you can generate a patch file, modify the Dockerfile with an extra patch step before the make step.

Insert your patch step before this make line:

RUN rm -rf .*cache && \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants