Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JosephLai241/nomad
/ functions
Functions
130 in github.com/JosephLai241/nomad
⨍
Functions
130
◇
Types & classes
68
↓ 37 callers
Function
paint_error
Format and display a `NomadError`.
src/utils/paint.rs:21
↓ 16 callers
Method
refresh
Refresh the tree and update the app's `breadcrumbs`, `directory_items`, and `directory_tree`.
src/ui/app.rs:334
↓ 15 callers
Function
convert_to_ansi_style
Parse the default or 256 Xterm color into an `ansi_term::Style`.
src/style/paint.rs:129
↓ 12 callers
Function
convert_to_tui_color
Parse the default or 256 Xterm color into a `tui::style::Color`.
src/style/paint.rs:144
↓ 6 callers
Function
highlight_line
Add syntax highlighting to a line and set its background color based on the diff status.
src/git/diff.rs:392
↓ 5 callers
Method
cat_file
`cat` the selected item if it is a file.
src/ui/app.rs:184
↓ 5 callers
Function
export_tree
Export the tree to a file. Writes to a custom filename if specified, otherwise the filename corresponds to the tree mode (normal, filetype, or Git sta
src/utils/export.rs:36
↓ 5 callers
Function
indiscriminate_search
Get files by its number in the tree, or traverse a directory and return all files within it. If this function is in Git mode and directory labels are
src/utils/search.rs:35
↓ 5 callers
Method
next
Get the next item in `self.items`.
src/ui/stateful_widgets.rs:38
↓ 5 callers
Method
previous
Get the previous item in `self.items`.
src/ui/stateful_widgets.rs:57
↓ 4 callers
Function
build_walker
Build a `Walk` object based on the client's CLI parameters.
src/traverse/utils.rs:78
↓ 4 callers
Function
highlight_matched
Reformat the filename if a pattern was provided and matched.
src/traverse/format.rs:180
↓ 4 callers
Method
selected_is_dir
Check if the selected item is a directory. Returns `true` if it is, returns `false` if it is a file.
src/ui/app.rs:165
↓ 4 callers
Function
walk_directory
Traverse the directory and display files and directories accordingly.
src/traverse/mod.rs:27
↓ 3 callers
Function
canonicalize_path
Get the absolute file path based for the target_string.
src/utils/paths.rs:24
↓ 3 callers
Function
convert_time
Convert a UNIX timestamp to a readable format.
src/utils/meta.rs:18
↓ 3 callers
Method
display_table
Display a table for `String`s.
src/utils/table.rs:49
↓ 3 callers
Function
get_breadcrumbs
Get the breadcrumbs for the target directory.
src/ui/utils.rs:87
↓ 3 callers
Function
get_filename
Get the filename for a `Path`.
src/utils/paths.rs:39
↓ 3 callers
Function
get_metadata
(args: &GlobalArgs, item: &Path)
src/utils/meta.rs:85
↓ 3 callers
Function
get_repo_branch
Try to get the current Git branch's name.
src/git/utils.rs:40
↓ 3 callers
Function
get_single_line_popup_area
Create a centered `Rect` for input popups.
src/ui/layouts.rs:6
↓ 3 callers
Function
get_status_markers
Get the status markers (colored initials) that correspond with the Git status of tracked files in the repository.
src/git/markers.rs:28
↓ 3 callers
Function
open_files
Open the target file.
src/utils/open.rs:50
↓ 3 callers
Method
to_tree
Build a tree from the `Vec<TransformedItem>`.
src/traverse/traits.rs:183
↓ 3 callers
Method
transform
Transforms a `Vec<FoundItem>` into a `Vec<TransformedItem>`.
src/traverse/traits.rs:38
↓ 2 callers
Function
bat_diffs
Use `bat` to display Git diffs.
src/git/diff.rs:53
↓ 2 callers
Function
build_release_list
Return a list of `Release` objects containing release information.
src/releases/mod.rs:54
↓ 2 callers
Function
build_tree
Build a `ptree` object and set the tree's style/configuration.
src/traverse/utils.rs:131
↓ 2 callers
Function
build_tree_style
Build a new `Style` based on the settings in `NomadStyle`.
src/traverse/utils.rs:184
↓ 2 callers
Function
build_types
Build an `ignore` `Types` depending on the
src/traverse/utils.rs:40
↓ 2 callers
Function
cat_view
Display the `cat`ed file.
src/ui/widgets.rs:97
↓ 2 callers
Function
check_nesting
Run checks to ensure tree nesting is correct. Make any corrections if applicable.
src/traverse/utils.rs:206
↓ 2 callers
Function
convert_bytes
Convert bytes to different units depending on size. Petabyte is the largest unit of data that may be converted. Otherwise, file sizes will be display
src/utils/meta.rs:34
↓ 2 callers
Function
convert_hex_code
Convert a hex code into a `u8`.
src/style/paint.rs:167
↓ 2 callers
Function
display_flat_branch
Format the branch into a flat view and then display it This is like the standard `git branch` or `git branch --list` commands.
src/git/branch.rs:235
↓ 2 callers
Function
extend_marker_map
Try to extend the `HashMap` containing status markers and their corresponding filenames with new Git repository items.
src/git/markers.rs:13
↓ 2 callers
Function
format_content
Format how directory contents are displayed in the tree.
src/traverse/format.rs:88
↓ 2 callers
Function
get_formatted_filename
Get the formatted filename for a Git diff.
src/git/diff.rs:419
↓ 2 callers
Function
get_icons_by_extension
()
src/utils/icons.rs:5
↓ 2 callers
Function
get_icons_by_name
()
src/utils/icons.rs:208
↓ 2 callers
Function
get_json_file
Return a JSON `File` object in write/overwrite or read-only mode.
src/utils/cache.rs:15
↓ 2 callers
Function
get_new_old_filenames
Get the new and old filenames from the DiffDelta.
src/git/diff.rs:363
↓ 2 callers
Function
get_repo
Try to get Git metadata from the target directory.
src/git/utils.rs:26
↓ 2 callers
Function
get_settings
Return all app settings formatted in `Row`s.
src/ui/utils.rs:19
↓ 2 callers
Function
get_symlink
Get the symlinked item.
src/utils/paths.rs:48
↓ 2 callers
Function
get_tree
Get the directory tree as a `Vec<String>` and the directory items as an `Option<Vec<String>>`.
src/ui/utils.rs:99
↓ 2 callers
Function
modify_trees
Modify the Git trees to stage/unstage/restore files. This function may do any of the following: Adds new or modified files to the current index. Rest
src/git/trees.rs:32
↓ 2 callers
Function
reset_args
Reset all settings to its original value.
src/ui/utils.rs:126
↓ 2 callers
Function
spawn_editor
Open the target file with an editor.
src/utils/open.rs:16
↓ 2 callers
Function
store_directory_contents
Write the labeled directories or numbered directory contents to a temporary file.
src/traverse/utils.rs:252
↓ 2 callers
Function
write_map
Write each key, value within a HashMap to JSON `Value` object.
src/traverse/utils.rs:268
↓ 1 callers
Function
bat_blame
Use `bat` to display the Git blame.
src/git/blame.rs:43
↓ 1 callers
Function
build_status_tree
Traverse the repo and build the status tree.
src/git/status.rs:126
↓ 1 callers
Function
check_for_update
Check for updates. An update is only displayed if there is a working internet connection, if checking the GitHub repository is successful, and if ther
src/releases/mod.rs:19
↓ 1 callers
Function
colorize_permission_bits
Colorize the permission bits for a file.
src/utils/meta.rs:60
↓ 1 callers
Function
commit_changes
Commit the staged changes with an accompanying message if applicable.
src/git/commit.rs:15
↓ 1 callers
Function
convert_ansi_to_syntect
Converts an `ansi_term::Colour` to a `syntect::highlighting::Color`
src/utils/paint.rs:34
↓ 1 callers
Function
discover_repo
Try to discover a Git repository at or above the current path.
src/git/utils.rs:12
↓ 1 callers
Function
display_branches
Get all local branches from the repository and transform them into a `Vec<FoundBranch>`.
src/git/branch.rs:29
↓ 1 callers
Function
display_commits_ahead
Get the number of commits ahead of `origin`.
src/git/status.rs:90
↓ 1 callers
Function
display_preview_tree
Build a dummy tree with the current tree settings.
src/config/preview.rs:14
↓ 1 callers
Function
display_status_tree
Build a tree that only contains items that are tracked in Git.
src/git/status.rs:28
↓ 1 callers
Function
display_summary_table
Create a table containing `Tokei` data.
src/loc/mod.rs:95
↓ 1 callers
Function
enter_event_loop
Enter the rootless mode event loop.
src/ui/mod.rs:70
↓ 1 callers
Function
enter_rootless_mode
Enter `nomad`'s rootless (interactive) mode.
src/ui/mod.rs:45
↓ 1 callers
Function
error_view
Display a message containing the error that was raised.
src/ui/widgets.rs:242
↓ 1 callers
Function
format_branch
Format how the branch looks depending on its metadata.
src/traverse/format.rs:254
↓ 1 callers
Function
format_directory
Format how directories are displayed in the tree.
src/traverse/format.rs:20
↓ 1 callers
Function
get_absolute_path
Get the absolute path for the file name.
src/utils/export.rs:13
↓ 1 callers
Function
get_args
Return the `Args` struct.
src/cli/mod.rs:76
↓ 1 callers
Function
get_blame
Traverse the Git blame hunks, format each line, and return a Vec containing the formatted lines in the blame.
src/git/blame.rs:113
↓ 1 callers
Function
get_current_directory
Get the current directory.
src/utils/paths.rs:15
↓ 1 callers
Method
get_current_file
Get the path to the current file.
src/ui/app.rs:303
↓ 1 callers
Function
get_deserialized_json
Get the deserialized JSON file.
src/utils/open.rs:41
↓ 1 callers
Function
get_diff_stats
Get Git diff statistics by comparing the HEAD and index.
src/git/diff.rs:502
↓ 1 callers
Function
get_diffs
Traverse Git diffs, format each line, and return a Vec containing the formatted filename and the associated diff. If item labels are specified, only i
src/git/diff.rs:89
↓ 1 callers
Function
get_error_popup_area
Create a centered `Rect` for error popups.
src/ui/layouts.rs:27
↓ 1 callers
Function
get_file_icon
Get the file's corresponding icon.
src/traverse/utils.rs:108
↓ 1 callers
Function
get_file_report
Get the `Report` for a specific file. ```rust tokei::Report { /// The code statistics found in the file. pub stats: CodeStats, /// File name. pub nam
src/loc/utils.rs:17
↓ 1 callers
Method
get_git_color
Return the color of the highlighted item if it contains Git changes.
src/ui/app.rs:434
↓ 1 callers
Function
get_keybindings_area
Create a centered popup area to display the available keybindings.
src/ui/layouts.rs:48
↓ 1 callers
Function
get_last_commit
Get the last commit in the Git repository.
src/git/utils.rs:64
↓ 1 callers
Function
get_random_color
Randomly pick a color within the `XTERM_COLORS` Vec. Pick another color if the selected color is already assigned to an author.
src/git/blame.rs:262
↓ 1 callers
Function
get_repo_diffs
Get the diff between the old Git tree and the working directory using the Git index.
src/git/diff.rs:43
↓ 1 callers
Function
get_settings_area
Create a centered popup area to display the current settings.
src/ui/layouts.rs:69
↓ 1 callers
Method
get_target_by_breadcrumbs
Get the current directory from the breadcrumbs.
src/ui/app.rs:323
↓ 1 callers
Function
get_text_editors
Get the default text editor from the environment. If that environment variable is not set, try to open the file with Neovim, then Vim, and finally Nan
src/utils/open.rs:28
↓ 1 callers
Function
help_view
Display the help TUI mode.
src/ui/widgets.rs:223
↓ 1 callers
Function
loc_in_dir
Get the `Language` struct for a directory.
src/loc/mod.rs:24
↓ 1 callers
Function
loc_in_file
Get the `CodeStats` for a single file from the `Language` struct.
src/loc/mod.rs:32
↓ 1 callers
Function
normal_view
Display the directory tree and any `cat`ted files. This is the default (normal) TUI mode.
src/ui/widgets.rs:58
↓ 1 callers
Function
nothing_found_view
Display a message that just says nothing was found. This is displayed if no directory items were found after filtering.
src/ui/widgets.rs:204
↓ 1 callers
Function
paint_git_item
Add color/style to the filename depending on its Git status.
src/git/utils.rs:74
↓ 1 callers
Function
paint_with_highlight
Highlight the filename in the Git status color. Also paint the pattern if a pattern is matched.
src/git/utils.rs:120
↓ 1 callers
Function
parse_config
Parse the settings that are specified in `nomad.toml` into the `NomadConfig` struct.
src/config/toml.rs:14
↓ 1 callers
Method
pattern_search
Refresh the `App` after the user searched for a pattern.
src/ui/app.rs:414
↓ 1 callers
Function
process_git_settings
Process the Git markers from `NomadConfig`.
src/style/paint.rs:10
↓ 1 callers
Function
process_indent_chars
Set the indent characters for the tree itself.
src/style/settings.rs:84
↓ 1 callers
Function
process_settings
Return a struct containing user-specified or default settings.
src/style/settings.rs:18
next →
1–100 of 130, ranked by callers