feature request: better preview output with skim
#4
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
rustc
) version: 1.59Description
The current output in preview window displayed with
skim
is nice and works currently for our purposes, but a future idea might be to customize what gets displayed in preview pane on the right side.For example, do still want to continue displaying the source code of the example file -- might it make sense to instead display the doc comments, or just any regular comments in the example, for instance? also in that case, would we want to automatically strip out the
//!
and leading spaces, and format the comments nicely?Side note: I've noticed that in some projects there are comments or info on a specific example that is encapsulated as part of a separate file, generally a text/markdown file. For example, for an example like
my_example.rs
, in the same directory there is often a separatemy_example.md
file which documents info about the example. Maybe, in such cases it would be nice to populate the preview pane with the contents of this markdown file, rather than the source file contents.Future, future idea: maybe we implement a terminal-based parser for Markdown? I think it would be cool to see
**text**
be translated as bold text in the terminal, and## Header
as a slightly bigger font size or maybe text with a custom background, for example.The text was updated successfully, but these errors were encountered: