Go to file
2023-09-15 10:39:25 +02:00
completion tree completion: completion of the filenames 2023-09-15 10:39:25 +02:00
mods Fix elvish 0.18 compatibility 2022-03-20 18:30:03 +01:00
alias.elv initial commit 2021-12-26 15:40:57 +00:00
completion.elv Add 49.3 (alias of doas or sudo) and tree (alias of erd) completion 2023-04-26 10:27:15 +02:00
LICENSE Add License 2021-12-26 15:41:50 +00:00
README.md initial commit 2021-12-26 15:40:57 +00:00

elv-lib

elv-lib includes some useful module functions and completions

mods

This folder groups modules for different usages:

file

file provides functions to complete a filename/directory motive with different methods:

  • exact motive
  • contains motive (with or without deep search)
  • search by prefix (with or without deep search)
  • search by suffix (with or without deep search)
  • filter results by given extension

format

format provides functions to beautify a given input. Examples:

  • format:size returns a size (in bytes) in a human-readable format
  • format:list displays data in columns

ip

ip provides useful functions to manipulate IPv4 or IPv6 addresses.

list

list provides functions to manipulate data of type list. Examples:

  • list:foreach acts as builtin each with the callback function on the form {|i v| } where i is the index in the list an v the value
  • list:reach acts as builtin each in reverse order
  • list:filter filters in a list with the given callback criterium
  • list:contains check if a list contains a specific entry or an entry which passes a callback
  • etc.

map

map provides functions to manipulate data of type map.

num

num provides useful functions for number operations which are not part of builtin functions or math: module functions.

option

pdf

pdf provides functions to manipulate PDF files (qpdf is required to make this module work).

completion

The folder completion contains the completion for some programs: