Skip to content

[Suggestion] Prefix source files with their listing number from the book #5

Description

@codenius

What could be improved?

Prefixing source code filenames would make it easier to follow along with the contents of the book when trying to spot a source file mentioned. Also it would enable sorting the source files in file managers according to the actual flow of the lecture. As a bonus i would offer a convenient shortcut for auto complete in the terminal.

Do you have a suggestion on how to improve it?

Introducing a naming convention for directories too would only be consequent.

Complete example with running index in order of initial appearance in the book as directory name prefix
Listing1 objects/OBC_TypeFunctions.cpp becomes 1_objects/1_OBC_TypeFunctions.cpp

Accompanying files that are not source code could just share the prefix number with the source file they belong to. If used for multiple listing there could be multiple solutions for this, the simplest probably being to just prefix these with the first listing number they appear in.
Find and replace could be used to update filename references in the book.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions