Skip to content

Commit 6bbb53d

Browse files
committed
Update readme and changelog. Prepare for release.
1 parent 0ada376 commit 6bbb53d

File tree

6 files changed

+27
-4
lines changed

6 files changed

+27
-4
lines changed

CHANGES.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
# csol changelog
22

3-
## Unreleased
3+
## csol 1.5.0
44

55
New features:
66

7-
- [#4](https://github.com/nielssp/csol/issues/4): Smart cursor movement (`smart_cursor 1` in `csolrc`)
7+
- [#4](https://github.com/nielssp/csol/issues/4): Smart cursor movement and improvements to shift movement
88
- [#5](https://github.com/nielssp/csol/issues/5): Manpage added
9+
- Alternative cursor style with `alt_cursor`
10+
11+
### Smart cursor
12+
13+
This release changes the default cursor movement. Previously when using the arrow keys or hjkl, the cursor would move a single cell in a grid where each cell is 1 character tall and a card's width plus spacing wide. Since most cells didn't contain moveable cards (or cards at all), a lot of extra key presses were necessary to move between cards. With the new smart cursor movement, the cursor will only move to cells that have cards facing up or cards that can be turned. This means that when pressing for instance the left arrow key, the cursor will move left but may also change position vertically.
14+
15+
Smart cursor movement can be toggled at runtime by pressing <kbd>Ctrl</kbd>+<kbd>S</kbd>, and turned off entirely by adding `smart_cursor 0` to `csolrc`.
16+
17+
I've made this the default because I think it's a better way to play. If you disagree or have ideas for improvements please don't hesitate to [create an issue on GitHub](https://github.com/nielssp/csol/issues).
918

1019
## csol 1.4.1
1120

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ stats 1
162162
scores_file scores.csv
163163
stats_file stats.csv
164164
smart_cursor 0
165+
keep_vertical_position 0
166+
alt_cursor 0
165167
```
166168

167169
The `theme_dir` and `game_dir` commands can be used to lazily load theme and game configuration files from a directory.
@@ -172,7 +174,15 @@ The `stats` command enables or disables the use of CSV file to keep track of tot
172174

173175
On Linux the default location for `scores.csv` and `stats.csv` is either `$XDG_DATA_HOME/csol/` or `$HOME/.local/share/csol/`. On DOS and Windows the default location is the same directory as `csol.exe`.
174176

175-
The `smart_cursor` command toggles an alternative cursor movement scheme that always places the cursor on a card.
177+
The `smart_cursor` command toggles an alternative cursor movement scheme that always places the cursor on a card. `keep_vertical_position` is used in conjunction with the smart cursor, if it's set to 1, then the cursor won't move vertically when moving left and right.
178+
179+
`alt_cursor` switches between two styles of cursor:
180+
181+
`alt_cursor 0`:
182+
![alt_cursor 0](images/alt-cursor-0.png)
183+
184+
`alt_cursor 1`:
185+
![alt_cursor 1](images/alt-cursor-1.png)
176186

177187
### Themes
178188

csolrc

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ default_theme default
44
default_game klondike
55
scores 1
66
stats 1
7+
show_score 0
8+
smart_cursor 1
9+
keep_vertical_position 0
10+
alt_cursor 1

images/alt-cursor-0.png

10.7 KB
Loading

images/alt-cursor-1.png

11.3 KB
Loading

src/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define CSOL_VERSION "1.4.1"
1+
#define CSOL_VERSION "1.5.0"

0 commit comments

Comments
 (0)