Skip to main content

move_site

Function move_site 

Source
pub fn move_site(
    path: &Path,
    id: &str,
    delta: i64,
    order: bool,
) -> Result<(), String>
Expand description

Moves a site delta places in the list: the order the Sites page shows (site_order, then the file’s). At either end, it stays. The file’s tables take that order. With order (the sharing writes format 2, where each site travels apart: docs/database.md, “The format of what travels”), site_order says it too, for your other devices; without, the list’s own order travels with it, as it always did, and site_order, if there, follows it.