summaryrefslogtreecommitdiffstats
path: root/config
AgeCommit message (Collapse)Author
2024-03-10rename case_sensitive_ext to case_insensitive_extJeff Zhao
- make case_insensitive_ext option work with themes as well
2024-03-10refactor code to reduce clonesJeff Zhao
- move a lot of methods into functions - printing icons is moved to rendering section
2024-03-10feat: add `case_sensitive_ext` option for mimetype, theme and icons (#497)Azad
* feat: add `case_sensitive_ext` option for mimetype, theme and icons * Clone `CONFIG_T` instead of initializing it twice * Reimplement without `CONFIG_T` as static ref * Clippy & fmt
2024-03-10fix theme not using prefixJeff Zhao
2024-02-27feat: use a pager instead confirm_exit (#498)lali
* Use a pager instead confirm_exit Read the $PAGER environment variable. If it's not set, simply use 'less'. * update mimetype config Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch>
2024-02-21Make mouse support configurable (#494)Mroik/PositiveC
* Make mouse sup configurable instead of build feat * Add mouse_support to docs * Add mouse_support to default config * Don't capture mouse on mouse_support = false * Fmt pass
2024-02-20fix selection style when lscolors enabled (#496)lali
* fix: selection style when lscolors enabled Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch> * make it readable Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch> * use unwrap_or_else() instead Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch> * fix some clippy warnings Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch> * Revert "fix some clippy warnings" This reverts commit 1521b462c90b52dd9e7ebd50b27b99bcefb9be99. * add ls_colors option to default config Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch> --------- Signed-off-by: Luterán Lajos <luteranlajos@protonmail.ch>
2024-02-13Add command for printing embedded configs (#487)sushi-shi
* Add command for printing embedded configs * Typo * Use doccomments instead of procmacro * Typo
2023-12-19Enable large file support for exiftool (#465)Mroik/PositiveC
2023-11-04custom_commands + fallback for the older configurations (#446)Tomasz Durda
* custom_commands + fallback for the older configurations 1. Added custom_commands 2. Implemented custom_search 3. Implemented custom_serach_interactive 4. Added fallback for the command in the keymaps * Docs + missing file * Added two more joshuto scripts --------- Co-authored-by: Tomasz Durda <edotdurda@e-science.pl> Co-authored-by: Jeff Zhao <jeff.no.zhao@gmail.com>
2023-11-04feat: add `focus_on_create` option (#448)Azad
* feat: add `focus_on_create` option * Replace `PathBuf` with `Path` * Minor clippy fix
2023-10-23add `norg` extension (#449)xfzv
Co-authored-by: xfzv <>
2023-10-09add `org` extension (#442)xfzv
closes #441 Co-authored-by: xfzv <>
2023-10-08Scrollable tab-bar (#437)DLFW
This implements a scrollable tab bar, like discussed in #233. This makes tabs easier to read, better utilizes the space in the top-bar and makes handling many tabs way easier. The display of the current directory has been removed. The current tab will show the directory always in full form. The directories of other tabs will be shown in full form if there is enough space, otherwise, they will be shown in a short form. If the available space in the top-bar is still not sufficient, scroll tags will be added at each end. The long-form is currently defined as the full, absolute path. The short-form is currently defined as the last directory element of the path. The tab-bar is configurable in terms of font styling and style character (like dividers, prefixes, and postfixes). Documentation has been created in a separate file. Collateral impact: * The `tilde_in_titlebar` option for `[display]` in `joshuto.toml` has been removed. (Because the "current dir display" has been removed.) * The `display_mode` option for `[tabs]` in `joshuto.toml` has been removed and with it, also the `tab_bar_mode` command. The appearance of index-numbers in tags is not configurable anymore. Numbers are shown if and only if there are more than one tab. This feature can be re-introduced later in some other form if still desired with the new tab-bar. With the new tab-bar, this configuration option did not make sense the way it was designed. * The `max_len` option for `[tabs]` in `joshuto.toml` has been removed. (Because tabs don't have a fixed width anymore.) * The function/feature of shortening paths by replacing heading path elements with their first character only has been removed. (Because I expect that this hard-to-interpret representation of a path will rarely be beneficial, now that there is a better space utilization in the top bar.) * The "old" tab-bar configuration options have been removed. * A `AppStyleOptionsRaw` struct has been introduced to allow handling of more complex default styling logic. Each styling attribute is defined there as an `Option` to indicate if a styling option has been set by the user or not. * A `PathStyleIfSome` trait is now available in "utils" to patch ratatui styles with another, _optional_ style.
2023-09-11add icon for `WebAssembly` program (`*.wasm`) (#429)xrelkd
2023-08-30Add icon for `*.csv` (#422)xrelkd
2023-08-29command chaining supportJeff Zhao
- breaks existing keymap configs -`command` field is renamed to `commands` - now an array instead of a single string
2023-08-24feat: regex support (#411)Justin Chen
* 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
2023-08-23feat: add more icons for multimedia file format (#410)xrelkd
2023-08-19add more formats to mimetype.toml (#405)xfzv
Co-authored-by: xfzv
2023-08-13feat: Add case sensitivity support for searching, selecting and filtering ↵Justin Chen
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
2023-08-12added all_selected field in CopyFilePath (#391)Uros
* added all_selected field in CopyFilePath * copy_filepath now handle both cases
2023-08-04feat: add user & group on foot and make linemode configturable and more ↵Lzzzzzt
options (#385) * add user & group on footer * linemode have more options * linemode have more options * linemode have more options
2023-07-26Separate OpenOffice preview cases (#376)Michael Huang
This commit ports ranger/ranger@9da2b4c which fixes previews with 'ods' and 'odp' filetypes as pandoc does not support them.
2023-07-01Update keymap.toml (#342)Imbolc
Standard vim page-up / page-down bindings
2023-06-30Fix incorrect sort method field in example config (#350)rqdmap
2023-06-26Mention that the preview script should be executable (#343)Imbolc
2023-06-25Tab theme configurable (#317)DLFW
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.
2023-06-06feat: Support for customizing file icons (#324)Noah Too
closes #308
2023-05-27Add flake support (#297)Ruixi-rebirth
Add flake support
2023-05-07Cleanup preview.sh template (#285)DLFW
* 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
2023-04-10add Ctrl+C keymapJeff Zhao
2023-03-30fix --foreground error messageJeff Zhao
2023-02-17new_tab can open specific directories (#256)DLFW
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.
2022-11-20add bookmark supportJeff Zhao
2022-10-20Add linemode feature and first simple linemodes (#206)DLFW
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
2022-09-11use Result instead of Option for parsing config filesJeff Zhao
2022-09-11add mimetype support via file commandJeff Zhao
2022-09-05add numbered_command to default keymapJeff Zhao
2022-09-04formatJeff Zhao
2022-09-03add symlink relativeJeff Zhao
2022-08-31move numbered_command into command that can be invokedJeff Zhao
This fixes the issue where `numbered_command` conflicts with switch_tab_index - side: change how tabs are rendered for easier visualization
2022-08-30Add "Visual-Mode" (#192)DLFW
* 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
2022-08-13add symlink shortcutJeff Zhao
2022-08-01add `symlink_files` commandJeff Zhao
2022-06-28update configJeff Zhao
2022-05-26add vsplit viewJeff Zhao
2022-05-26Merge branch 'main' of github.com:kamiyaa/joshutoJeff Zhao
2022-05-26split up keymaps into different modesJeff Zhao
2022-05-16add ctrl+h as hidden files toggle (#171)Antoine Bertin
Pretty much like everywhere else on linux