Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
710 changes: 710 additions & 0 deletions .clang-format

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
rover

rover.log
27 changes: 27 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/rover",
"args": ["${workspaceFolder}"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Abilita la riformattazione per gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
32 changes: 32 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-std=gnu17",
"-Wall",
"-O0",
"-ggdb",
"-D_DEFAULT_SOURCE", // pkg-config --cflags ncursesw
/* "-D_XOPEN_SOURCE=600", already defined in rover.h */ // pkg-config --cflags ncursesw
"${workspaceFolder}/src/*c",
"-o",
"${workspaceFolder}/rover",
"-lncursesw", // pkg-config --libs ncursesw
"-ltinfo" // pkg-config --libs ncursesw
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "compiler: /usr/bin/gcc"
}
]
}
21 changes: 21 additions & 0 deletions CHANGES.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Change Log

## [2.0.1] - 2022-12-31

### New revision

- completely revised and improved functions
- now it can browse the directories with arrows (also scroll mouse)
- now most commands are associated with function keys
- better copy performance usign kernel function sendfile()
- confirmation is asked before overwriting existing files
- a formatted "rover.log" file is created with info and errors
- programming style is closer to GNU standards
- functions are divided into specific files
- Fixed several bugs
- also improved the handling of command line arguments
- VSCode folder with JSON files
- .clang-format file in order to keep a good style

to do:
- implement a modern progress bar


## [1.0.1] - 2020-06-04

### Bug Fixes
Expand Down
Empty file modified FAQ.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion Makefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LIBS_NCURSESW := `$(PKG_CONFIG) --libs ncursesw`

all: rover

rover: rover.c config.h
rover: main.c rover.c rover.h os_funcs.c os_funcs.h ui_funcs.c ui_funcs.h
$(CC) $(CFLAGS) $(CFLAGS_NCURSESW) -o $@ $< $(LDFLAGS) $(LIBS_NCURSESW)

install: rover
Expand Down
37 changes: 19 additions & 18 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Introduction
============

Rover is a file browser for the terminal.
This is a complete review of Rover is a file browser for the terminal.

![Rover screenshot](/../screenshots/screenshot.png?raw=true "Screenshot")

Expand All @@ -28,22 +28,23 @@ Quick Start

Basic Usage:
```
q - quit Rover
? - show Rover manual
j/k - move cursor down/up
J/K - move cursor down/up 10 lines
g/G - move cursor to top/bottom of listing
l - enter selected directory
h - go to parent directory
H - go to $HOME directory
0-9 - change tab
RETURN - open $SHELL on the current directory
SPACE - open $PAGER with the selected file
e - open $VISUAL or $EDITOR with the selected file
/ - start incremental search (RETURN to finish)
n/N - create new file/directory
R - rename selected file or directory
D - delete selected file or (empty) directory
<F1> or ? Show this manual.
<ESC> Quit rover.
Arrow <UP>/<DOWN> Move cursor up/down.
Page <UP>/<DOWN> Move cursor up/down 10 lines.
<HOME>/<END> Move cursor to top/bottom of the list.
Arrow <RIGHT>/<LEFT> Enter selected directory/Go to parent directory.
/ Go to $HOME directory.
l Go to the target of the selected symbolic link.
t Open terminal $SHELL on the current directory.
<F6> Open $PAGER with the selected file.
<F7> Open $VISUAL or $EDITOR with the selected file.
<F8> Open $OPEN with the selected file.
F/D/H Toggle file/directory/hidden listing.
<F9>/<F12> Create new file/directory.
<F2> Rename selected file or directory.
<CANC> Delete selected file or (empty) directory.
<SPACE> Toggle mark on the selected entry.
```

Please read rover(1) for more information.
Expand All @@ -60,7 +61,7 @@ Configuration
=============

Rover configuration (mostly key bindings and colors) can only be changed by
editing the file `config.h` and rebuilding the binary.
editing the file `rover.h` and rebuilding the binary.

Note that the external programs executed by some Rover commands may be changed
via the appropriate environment variables. For example, to specify an editor:
Expand Down
88 changes: 0 additions & 88 deletions config.h

This file was deleted.

Loading