Skip to content

Commit

Permalink
Merge pull request #165 from kyoheiu/develop
Browse files Browse the repository at this point in the history
v2.2.2
  • Loading branch information
kyoheiu authored Dec 18, 2022
2 parents b88ef11 + 8df7e66 commit a3bab46
Show file tree
Hide file tree
Showing 9 changed files with 1,311 additions and 1,162 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/install_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,17 @@ jobs:
override: true
- name: Install
run: cargo install --path .
netbsd-install:
runs-on: macos-12
name: netbsd-install
steps:
- uses: actions/checkout@v2
- name: Test in NetBSD
id: test
uses: vmactions/netbsd-vm@v0
with:
usesh: true
prepare: |
pkg_add rust
run: |
cargo install --path .
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
Makefile
Dockerfile
/testfiles
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

## Unreleased

## v2.2.2 (2022-12-19)

### Fixed

- Disable commands with Ctrl or other modifiers unless explicitly implemented. (For now, `Ctrl + r` to redo, `Alt + j` and `Alt + k` to scroll the preview text are implemented) This avoids for example the situation where `Ctrl + d` unintentionally deletes an item.
- Add `create_dir_all` to `config_dir` and `data_local_dir` to avoid error.
- Check if the argument is directory.

## v2.2.1 (2022-12-15)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "felix"
version = "2.2.1"
version = "2.2.2"
authors = ["Kyohei Uto <[email protected]>"]
edition = "2021"
description = "tui file manager with vim-like key mapping"
Expand Down
29 changes: 6 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,13 @@ For more detailed document, visit https://kyoheiu.dev/felix.

## New release

## v2.2.1 (2022-12-15)
## v2.2.2 (2022-12-19)

### Fixed

- Fix the compilation on NetBSD.

## v2.2.0 (2022-12-12)

### Changed

- **IMPORTANT**: Trash, log directory, and session file path changed.
- from v2.2.0, felix will use `dirs::data_local_dir()` to store the deleted items and log files, instead of `dirs::config_dir()`.
- Due to this change, the path for linux will be `$XDG_DATA_HOME/felix/{Trash, log, .session}`, in most case `/home/user/.local/share/felix/{Trash, log, .session}`. For Windows `{FOLDERID_LocalAppData}\felix\{Trash, log, .session}`, typically `C:\Users\user\AppData\Local\felix\{Trash, log, .session}`. No change for macOS users.
- Note that config file path does not change on any OS!
- Please don't forget deleting old files if you don't want them anymore.

### Added

- `:trash` to go to the trash directory.

### Fixed

- Support NetBSD to open file in a new window.
- Properly remove broken symlink in Windows as well. Also, when deleting/puttiing a directory, broken symlink(s) in it won't cause any error and will be removed from the file system after deleting/putting.
- Disable commands with Ctrl or other modifiers unless explicitly implemented. (For now, `Ctrl + r` to redo, `Alt + j` and `Alt + k` to scroll the preview text are implemented) This avoids for example the situation where `Ctrl + d` unintentionally deletes an item.
- Add `create_dir_all` to `config_dir` and `data_local_dir` to avoid error.
- Check if the argument is directory.

For more details, see `CHANGELOG.md`.

Expand Down Expand Up @@ -123,7 +106,7 @@ These apps do not need any configuration to use with felix!

```
`fx` => Show items in the current directory.
`fx <directory path>` => Show items in the path.
`fx <directory path>` => Show items in the directory.
Both relative and absolute path available.
```

Expand All @@ -132,7 +115,7 @@ Both relative and absolute path available.
```
`-h` | `--help` => Print help.
`-v` | `--version` => Check update.
`-l [path]` | `--log [path]` => Launch the app and create a log file.
`-l` | `--log` => Launch the app, automatically generating a log file in `{data_local_dir}/felix/log`.
```

<a id="key-manual"></a>
Expand Down
3 changes: 0 additions & 3 deletions src/functions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::state::FELIX;

use super::config::Colorname;
use super::errors::FxError;
use super::term::*;
Expand Down Expand Up @@ -258,7 +256,6 @@ pub fn init_log(data_local_path: &Path) -> Result<(), FxError> {
.build();
let log_path = {
let mut path = data_local_path.to_path_buf();
path.push(FELIX);
path.push("log");
path
};
Expand Down
2 changes: 1 addition & 1 deletion src/help.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Help text.
pub const HELP: &str = "# felix v2.2.1
pub const HELP: &str = "# felix v2.2.2
A simple TUI file manager with vim-like keymapping.
## Usage
Expand Down
Loading

0 comments on commit a3bab46

Please sign in to comment.