Skip to content

Cheatsheet with dot in name not found for viewing, but editing works fine #794

Description

@sevens-st

A description of the problem

When viewing a cheatsheet with a dot in the filename the cheatsheet won't be found (this did work in previous versions, have been using it for years). Editing the same cheatsheet still works fine.

To reproduce:

$  cheat -e docker-compose.yml
... add some content and save ...
$  cheat docker-compose.yml
No cheatsheet found for 'docker-compose.yml'.
$  cheat -e docker-compose.yml
... works and shows content we added before ...

cheat version info

5.1.0 (installed via brew, on Linux)

cheat configuration info

Reproduced with a clean conf, environment:

cheat -d:

  personal: /PATH/TO/cheatsheets/personal
  work:     /PATH/TO/cheatsheets/work

conf.yml (sans comments):

---
editor: vim

colorize: false

style: monokai

formatter: terminal256

pager: less

cheatpaths:

  - name: personal
    path: /PATH/TO/cheatsheets/personal
    tags: [ personal ]
    readonly: false

  - name: work
    path: /PATH/TO/cheatsheets/work
    tags: [ work ]
    readonly: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions