void hotlist_cmd (void) { char *target; target = hotlist_show (LIST_HOTLIST); if (!target) return; if (get_current_type () == view_tree) tree_chdir (the_tree, target); else { vfs_path_t *deprecated_vpath; char *cmd; deprecated_vpath = vfs_path_from_str_flags (target, VPF_USE_DEPRECATED_PARSER); cmd = g_strconcat ("cd ", vfs_path_as_str (deprecated_vpath), (char *) NULL); vfs_path_free (deprecated_vpath); do_cd_command (cmd); g_free (cmd); } g_free (target); }
/* Loads the .mc.tree file */ static void load_tree (WTree *tree) { tree_store_load (); tree->selected_ptr = tree->store->tree_first; tree_chdir (tree, home_dir); }
static void load_tree (WTree * tree) { tree_store_load (); tree->selected_ptr = tree->store->tree_first; tree_chdir (tree, mc_config_get_home_dir ()); }
static void load_tree (WTree * tree) { vfs_path_t *vpath; tree_store_load (); tree->selected_ptr = tree->store->tree_first; vpath = vfs_path_from_str (mc_config_get_home_dir ()); tree_chdir (tree, vpath); vfs_path_free (vpath); }
void quick_chdir_cmd (void) { char *target; target = hotlist_cmd (LIST_HOTLIST); if (!target) return; if (get_current_type () == view_tree) tree_chdir (the_tree, target); else if (!do_cd (target, cd_exact)) message (1, MSG_ERROR, _("Cannot change directory") ); g_free (target); }
void hotlist_cmd (void) { char *target; target = hotlist_show (LIST_HOTLIST); if (!target) return; if (get_current_type () == view_tree) tree_chdir (the_tree, target); else { char *cmd = g_strconcat ("cd ", target, (char *) NULL); do_cd_command (cmd); g_free (cmd); } g_free (target); }
void sync_tree (const vfs_path_t * vpath) { tree_chdir (the_tree, vpath); }
void sync_tree (const char *path) { tree_chdir (the_tree, path); }