2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-16 02:23:22 +00:00
Hilbish/docs/nature/dirs.md

1.9 KiB

title description layout menu
Module dirs internal directory management doc
docs
parent
Nature

Introduction

The dirs module defines a small set of functions to store and manage directories.

Functions

setOld(d) Sets the old directory string.
recent(idx) Get entry from recent directories list based on index.
push(dir) Add dir to the recent directories list.
pop(num) Remove the specified amount of dirs from the recent directories list.
peak(num) Look at num amount of recent directories, starting from the latest.

dirs.peak(num)

Look at num amount of recent directories, starting from the latest. This returns a table of recent directories, up to the num amount.

Parameters

num number


dirs.pop(num)

Remove the specified amount of dirs from the recent directories list.

Parameters

num number


dirs.push(dir)

Add dir to the recent directories list.

Parameters

dir string


dirs.recent(idx)

Get entry from recent directories list based on index.

Parameters

idx number


dirs.setOld(d)

Sets the old directory string.

Parameters

d string