Skip to content

[Suggestion] Allow user to disable index in inline-history #964

Description

@elseawhy
Image

Right now an index is showed when inline-history is enabled, there is no way to disable this and the only way to remove this now is by commenting out line 851 to 861 in src/app/ui.rs

line 851 - 861:

                        let mut extra_info_text = format!(" #idx={}", sug.index);
                        if let Some(ts) = sug.timestamp {
                            let time_ago_str = ts.format_timeago_5chars();
                            extra_info_text.push_str(&format!(" {}", time_ago_str.trim_start()));
                        }

                        content.write_tagged_span_dont_overwrite(&TaggedSpan::new(
                            Span::from(extra_info_text)
                                .style(crate::settings().colour_palette.inline_suggestion()),
                            Tag::HistorySuggestion,
                        ));

Suggestion: Allow user to enable/disable it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions