src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/mods/store/store.d.elv (about) 1 # Outputs the sequence number that will be used for the next entry of the 2 # command history. 3 fn next-cmd-seq { } 4 5 # Adds an entry to the command history with the given content. Outputs its 6 # sequence number. 7 fn add-cmd {|text| } 8 9 # Deletes the command history entry with the given sequence number. 10 # 11 # **NOTE**: This command only deletes the entry from the persistent store. When 12 # deleting an entry that was added in the current session, the deletion will 13 # not take effect for the current session, since the entry still exists in the 14 # in-memory per-session history. 15 fn del-cmd {|seq| } 16 17 # Outputs the content of the command history entry with the given sequence 18 # number. 19 fn cmd {|seq| } 20 21 # Outputs all command history entries with sequence numbers between `$from` 22 # (inclusive) and `$upto` (exclusive). Use -1 for `$upto` to not set an upper 23 # bound. 24 # 25 # Each entry is represented by a pseudo-map with fields `text` and `seq`. 26 fn cmds {|from upto| } 27 28 # Adds a path to the directory history. This will also cause the scores of all 29 # other directories to decrease. 30 fn add-dir {|path| } 31 32 # Deletes a path from the directory history. This has no impact on the scores 33 # of other directories. 34 fn del-dir {|path| } 35 36 # Outputs all directory history entries, in decreasing order of score. 37 # 38 # Each entry is represented by a pseudo-map with fields `path` and `score`. 39 fn dirs { }