Skip to content

Commit

Permalink
Changelog entry for -automatic-save-to-history
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Apr 27, 2023
1 parent 4271f07 commit 3be0c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased] - ReleaseDate
- Fix high CPU usage when input isn't empty [#66](https://github.com/svenstaro/rofi-calc/pull/66) (thanks @bootstrap-prime)
- Add `-automatic-save-to-history` option [#87](https://github.com/svenstaro/rofi-calc/pull/87) (thanks @matejdro)

## [2.1.0] - 2022-02-06
- Correctly handle ≈ signs emitted by qalc [#78](https://github.com/svenstaro/rofi-calc/pull/78) (thanks @SabrinaJewson)
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Run rofi like:

rofi -show calc -modi calc -no-show-match -no-sort

The result of the current input can be selected with `Ctrl+Enter`, and history entries can be selected with `Enter`. By default this will just output the equation/result.
The result of the current input can be selected with `Ctrl+Return`, and history entries can be selected with `Return`. By default this will just output the equation/result.

The history file by default sits at `$HOME/.local/share/rofi/rofi_calc_history` in case you ever need to delete it or change it manually.
You can disable persistent history if you don't like that.
Expand Down Expand Up @@ -102,12 +102,14 @@ $ make install

rofi -show calc -modi calc -no-show-match -no-sort -no-history -lines 0

The benefit of this is that you can simply enter a term and press return and that'll already
The benefit of this is that you can simply enter a term and press `Return` and that'll already
act on the result by printing it to stdout or via `-calc-command` if configured.

- To automatically save last calculation to the history on rofi close, use `-automatic-save-to-history`:
- To automatically save last calculation to the history on rofi close, use `-automatic-save-to-history`.:

rofi -show calc -modi calc -no-show-match -no-sort --automatic-save-to-history
rofi -show calc -modi calc -no-show-match -no-sort -automatic-save-to-history

This means that calculations are put into history even if you don't press `Return`.

- To enable thousand separators in the output (e.g. `5 * 12 = 6,000`, rather than `6000`) add the following to `~/.config/qalculate/qalc.cfg`

Expand Down

0 comments on commit 3be0c3a

Please sign in to comment.