Skip to content

LeaoMartelo2/tired

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tired

A Emacs Dired clone, as a standalone application for your terminal

Tired is a clone of the Dired file browser of Emacs, but remade as a standalone application for the terminal.

!! Keep in mind this is made through the eyes of someone who has barely used Emacs !!

(Terminal dIRED -> Tired)

Warning

This repository has been re-uploaded, as I managed to break it, very badly, to the point of messing up git history.

(Tired being used to display the root of the project)

Note

This is very buggy made with only me using it in mind
Don't be afraid of making pull requests of new USEFUL functionality or fixing bugs.

Warning

This CAN and WILL crash on directories with spaces on their name, and in most cases files aswell.
This is a wontfix for now, as you should not be doing that on the first place.

Configuring and building

Configuring

Tired follows a similar structure to suckless software (but this one still sucks a lot), where all the configuration is done before compiling.

To modify configurations such as Keybindings, Colors and page sizes visit the src/config.h file.

The configuration file contains pretty much all the information you need to configure the project to your liking. You can make your own extensions of it to modify / add functionality you might desire.

To reset the default configuration with (assuming you're at the root of the project)

cp src/config.h.def src/config.h

Building

This project uses the nob.h build system, be sure to check it out.

The only real requireaments for the project are ncurses library and a c compiler.

To first build the project you need to bootstrap the build system. That is made very easy with the nob.

cc nob.c -o nob && ./nob

After that, every time you need to re-compile to project just simply run

./nob

again and the project will be recompiled with updated settings.

Using Tired

Assuming default Keybindings:

Press h at any moment to open the help menu.

Navigate arround with the arrow keys.

Press Enter to go inside a directory / open a file.
You can configure the command to open a specified file type at src/config.h.

Press Backspace to go up a directory.

Press f or / to open a search box, it will try to jump to the best match to your text.
You can also press g to jump by the line number.

Press x to run a command on the current directory.

Press m to create a directory and t to touch (create) a file.

Press d to delete the current selected file.

Too much files to fit in the screen? Press n and p to navigate between next and previous pages.

About

Emacs Dired clone, as standalone application for your terminal

Topics

Resources

License

Stars

Watchers

Forks

Languages