Age | Commit message (Collapse) | Author |
|
|
|
- breaks existing keymap configs
-`command` field is renamed to `commands`
- now an array instead of a single string
|
|
* feat: add the regex support for the matcher
* feat: add functions for searching with regex
* feat: add commands for searching with regex and change the case sensitivity
* docs: add explanations for the new feature
|
|
|
|
Co-authored-by: xfzv
|
|
files (#393)
* feat: Add struct and enum definitons for choosing case sensitivity of search
* feat: Implement `FromStr` for CaseSensitivity
* feat: Add a command to change the configuration of case sensitivity
* feat: Add case sensitivity support for search operations
* feat: Add case sensitivity support for selection operations
* docs: Add explanations for the new feature
* feat: Add case sensitivity support for searching with fzf
* docs: Add explanations for the new feature
* docs: Update documents
* feat: Refactor and add case sensitivity support for the filter operation
* refactor: Extract codes related to constructing the context for searching
* refactor: Extract the common component of searching, selecting and filtering files
* refactor: Change the module path and name
* feat: Use separate options for case sensitivity configurations
* feat: Add support for changing case sensitivity configurations at runtime
* docs: Add explanations for the new command
|
|
* added all_selected field in CopyFilePath
* copy_filepath now handle both cases
|
|
options (#385)
* add user & group on footer
* linemode have more options
* linemode have more options
* linemode have more options
|
|
This commit ports ranger/ranger@9da2b4c which fixes previews with 'ods' and 'odp' filetypes as pandoc does not support them.
|
|
Standard vim page-up / page-down bindings
|
|
|
|
|
|
Text style for tabs can be configured within
`theme.toml` with the dotted keys `tab.active` and `tab.inactive`.
The default style is the same as the former hard-coded style.
`theme.toml` has been restructured and comments have been
added to give a short documentation on each style item.
The documentation (`theme.toml.md`) has been enhanced, and
the excerpt of `theme.toml` with additional comments has
been removed from there.
That way it should be easier for devs to keep docs and the default
`theme.toml` in sync, and easier for users when the detail comments
can be found in the configuration file itself.
The conversion from `AppStyle` to `tui::style::Style` is now provided as
a function of `AppStyle` and a `From`-implementation for `Style` to
avoid having the same factory code repeating all over.
|
|
closes #308
|
|
Add flake support
|
|
* Cleanup preview.sh template
Removed ranger residuals and dead code from the preview.sh script and
the logic that invokes it.
* Remove --[x/y]-coord arguments
|
|
|
|
|
|
The `new_tab` command got enhanced and can now open a user-specified
directory, or the directory of the current tab, or the directory
currently highlighted by the cursor.
* `new_tab some-dir` opens new tab with directory `some-dir`
* `new_tab --current` opens new tab with the same directory as the current tab
* `new_tab --cursor` opens new tab with the directory which is currently marked by the cursor
The `keymap.toml` documentation got adapted accordingly.
The default key-map also got enhanced/changed:
* `ctrl-t`: opens tab in default directory
* `shift-t`: opens tab in directory of current tab
* `alt-t`: opens tab in directory marked by cursor
Like before, all new tabs get activated when created. Opening tabs “in
the background” is a possible enhancement for the future and might be
especially useful for the `--cursor` variant.
|
|
|
|
This adds the basic ability to change the representation of files in the
TUI detailed dir list by letting the user choose a certain "linemode".
As of now, there are only three simple linemodes, all showing the
filename on the left side and a preceding symlink indicator in the
beginning of the right label as usual.
The "size" linemode shows the right label as it has been up to now.
The "mtime" linemode shows the mtime of the file or directory.
The "sizemtime" linemodes combines both meta-data.
The user can change the linemode like so:
```
:linemode [size|mtime|sizemtime]
```
Default keybindings have been added:
``ms`` for *size*, ``mm`` for *mtime*, and ``mM`` for *sizemtime*.
The selected linemode is specific for each tab.
A new tab always starts with the *size* linemode.
Possible enhancements:
* Move the code for factoring a label out of the
``tui_dirlist_detailed`` module to some UI-independent module
* Add a configuration option for the default linemode for new tabs
* Add further simple linemodes
* Generic support for linemodes with only one “full line label”
* Add support for custom linemodes where a label is constructed by an
external script
|
|
|
|
|
|
|
|
|
|
|
|
This fixes the issue where `numbered_command` conflicts with switch_tab_index
- side: change how tabs are rendered for easier visualization
|
|
* Add "Visual-Mode"
This adds a "visual-mode" file selection feature where a range-selection follows the file-cursor.
Description of usage is added to the docs.
Also, the "normal" and the new "visual-mode-selection" are now preserved
when a `DirList` is reloaded.
Wrap-up of changes:
* Add command `toggle_visual`, mapped to `V`
* Add command `escape`, mapped to `ESCAPE`
* Add style `[visual_mode_selection]` for file entries which are
"temporarily" selected by visual-mode
* For `JoshutoDirEntry`, the attribute `selected` has been renamed to
`permanent_selected`, and a second selection-attribute
`visual_mode_selected` has been added. "Setters" and "getters" have
been adapted/added accordingly. The former "getter" for the `selecetd`
attribute still exists and returns `True` for an entry which is
"permanant selected" _or_ "visual-mode selected". So any higher logic
which acts on selected files does not need to care about "how" and
entry is selected.
* Each `JoshutoDirList` has an optional index of the file where
visual-mode has been entered and re-calculates the "visual-mode
selecetd" status for each entry any time the cursor-index changes.
* The footer has been extended so it shows a "VIS" marker when the user
is in visual-mode.
This implementation of visual-mode is a bit different from the ranger
one, where the visual-selection is turned into a "normal selection" when
a command (like `copy-files`) is issued. This implementation keeps
both selections separate until the user toggles back to "normal mode".
Only then the visual-selection is taken over to the "normal selection".
The user also can withdraw the visual-selection with `escape`.
The `escape` command may be used also for other "reset"-actions in the
future.
* fix syntax for Rust stable
* cargo clippy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pretty much like everywhere else on linux
|
|
|
|
--output-file is used for all output by joshuto
and can be specified what to output by:
`quit --output-current-directory`
`quit --output-selected-files`
|
|
|
|
|
|
* Add console shortcuts
* Add support for proportional page movements
|
|
|
|
* code cleanup
Remove dead code and unused imports around preview features.
* Remove unused config option [display]show_preview
* Remove config option [preview]preview_images
* Remove unused imports
* Remove dead code and unused imports
|
|
|
|
|
|
|
|
|
|
column_ratio property can now contain only 2 elements
|
|
* add line numbers
add command to change line numbers displaying
* refactor line numbering code
* add navigating by line numbers
add NumberedExecute trait for Command
* fix line numbering margin bug
* add documentation for numbered commands
|
|
|
|
Avif is a newish image format that is meant to be better than webp and jpg etc more info here
https://jakearchibald.com/2020/avif-has-landed/
|