Skip to content

text wrap comments to completely fit within the preview pane #11

@rnag

Description

@rnag
  • cargo-rx version:
  • Rust Compiler (rustc) version:
  • Operating System:

Description

Instead of displaying the example file contents directly in the preview pane, it'd be ideal to leverage a text wrapping library such as textwrap to wrap the doc comments -- and regular comments if feasible -- so that we can be sure that the comments completely fit within the preview pane, and are displayed as expected without any text cutting off near the end.

For example, note that comments in a line that are past a max width are hidden in the preview pane currently:
image

Related Issues

This issue goes with #12

What I Did

I just cd into my project folder and ran:

$ rx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions