refactor

[?]
Aug 13, 2025, 5:24 PM
EGJG2KPDC7CLY3H66NW6MROGTF43G3EKHS7W7JRJ5WO3RU5Q7UXQC

Dependencies

  • [2] TQEZQJV4 finish other channels logs selection
  • [3] NZD56PVB fix mouse selection
  • [4] WAOGSCOJ very nice refactor, wip adding channels logs
  • [*] WT3GA27P add cursor with selection

Change contents

  • replacement in inflorescence/src/selection.rs at line 1722
    [2.6926][2.6926:7890]()
    Select::LogChangeFile { ix, path: _ } => {
    match ctx.state.channel.take() {
    Some(Channel {
    ix: channel_ix,
    name,
    log:
    Some(LogChange {
    ix: change_ix,
    hash,
    message,
    file,
    }),
    }) => {
    if let Some(Log::Loaded { log }) =
    ctx.logs.other_channels_logs.get(&name)
    && let Some(log_entry) = log.get(change_ix)
    {
    let (selection, task) =
    channel_log_file_selection(
    ix,
    [2.6926]
    [2.7890]
    Select::LogChangeFile {
    ix: file_ix,
    path: _,
    } => match ctx.state.channel.take() {
    Some(Channel {
    ix: channel_ix,
    name,
    log:
    Some(LogChange {
    ix: change_ix,
    hash,
    message,
    file,
    }),
    }) => {
    if let Some(Log::Loaded { log }) =
    ctx.logs.other_channels_logs.get(&name)
    && let Some(log_entry) = log.get(change_ix)
    {
    let (selection, task) = channel_log_file_selection(
    file_ix,
    hash,
    VDir::Down,
    ctx.navigation,
    log_entry,
    );
    (
    Some(Channel {
    ix: channel_ix,
    name,
    log: Some(LogChange {
    ix: change_ix,
  • replacement in inflorescence/src/selection.rs at line 1755
    [2.7936][2.7936:8656]()
    VDir::Down,
    ctx.navigation,
    log_entry,
    );
    (
    Some(Channel {
    ix: channel_ix,
    name,
    log: Some(LogChange {
    ix: change_ix,
    hash,
    message,
    file: Some(selection),
    }),
    [2.7936]
    [2.8656]
    message,
    file: Some(selection),
  • replacement in inflorescence/src/selection.rs at line 1758
    [2.8696][2.8696:9314]()
    task,
    )
    } else {
    (
    Some(Channel {
    ix: channel_ix,
    name,
    log: Some(LogChange {
    ix: change_ix,
    hash,
    message,
    file,
    }),
    [2.8696]
    [2.9314]
    }),
    task,
    )
    } else {
    (
    Some(Channel {
    ix: channel_ix,
    name,
    log: Some(LogChange {
    ix: change_ix,
    hash,
    message,
    file,
  • replacement in inflorescence/src/selection.rs at line 1772
    [2.9354][2.9354:9468]()
    Task::none(),
    )
    }
    [2.9354]
    [2.9468]
    }),
    Task::none(),
    )
  • edit in inflorescence/src/selection.rs at line 1776
    [2.9494][2.9494:9558]()
    selection => (selection, Task::none()),
  • replacement in inflorescence/src/selection.rs at line 1777
    [2.9580][2.9580:9598]()
    }
    [2.9580]
    [2.9598]
    selection => (selection, Task::none()),
    },