Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added right-click menu option. #4324 #4333

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ The file operations are available through a number of toolbar options:

image::hop-gui/perspective-explorer-toolbar-items.png[File explorer toolbar items]

* Right arrow: open selected file
* Create new folder
* Delete
* Rename
* Refresh

You can also open a file simply by double-clicking it. If this is a workflow or pipeline it will be opened in the data xref:hop-gui/perspective-data-orchestration.adoc[orchestration perspective]. In all other cases the file will be opened in a new tab.
* Open selected file: Use the right arrow or double-click to open a selected file. You can also open a file simply by double-clicking it. If this is a workflow or pipeline it will be opened in the xref:hop-gui/perspective-data-orchestration.adoc[Data Orchestation] perspective. In all other cases the file will be opened in a new tab.
* Create folder: Add a new folder.
* Delete: Remove a selected file or folder.
* Rename: Rename a file or folder.
* Refresh: Refresh the file list.
* Show or hide files: Show or hide files or directories.

== Git integration

Expand All @@ -71,16 +70,33 @@ image::hop-gui/perspective-explorer-git-visual-diff-example.png[Git visual diff

Small information icons will be added to the various transforms, actions and hops to indicate if they were changes, deleted or added.

=== Right-click menu options
The right-click menu in Apache Hop Git integration offers several useful options to help manage your files and Git operations directly from the interface. Here’s a breakdown of each option:

* Create folder: Create a new folder within the selected directory. This is useful for organizing workflows, pipelines, and other project resources.
* Open: Opens the selected file or folder. For workflows and pipelines, it launches them in the Data Orchestration perspective, while other file types will open in a new tab.
* Rename: Allows you to change the name of the selected file or folder, helping you keep your project files organized and clearly labeled.
* Copy name: Copies the name of the selected file or folder to your clipboard, making it easy to paste and reference elsewhere.
* Copy path: Copies the full path of the selected file or folder to your clipboard, useful for quick navigation or sharing the location with others.
* Git Info: Displays detailed information about the Git status of the selected file, including any recent changes.
* Git Add: Stages the selected file(s) for commit, meaning the changes are prepared for inclusion in your next Git commit.
* Git Revert: Reverts any changes made to the selected file, restoring it to the last committed state. This is helpful when you need to undo accidental modifications.
* Git Commit: Opens a dialog for committing staged changes to your local Git repository. You can add a descriptive commit message summarizing your updates.
* Delete: Removes the selected file or folder from your project. Make sure to use this carefully, as it permanently deletes the item from your directory.

image::hop-gui/hop-gui-file-explorer-right-menu.png[git right-click menu options in the explorer perspective]

==== Git operations

Here are the basic git operations that are supported:

* add: stage the file to include it in a commit
* commit: commit changes to origin
* revert changes: checkout file or folder to revert changes
* push: push changes
* pull: pull changes
* Git Add: stage the file to include it in a commit.
* Git Commit: commit changes to origin.
* Git Revert: checkout file or folder to revert changes.
* Git Push: push changes.
* Git Pull: pull changes.

You can access these operations from the toolbar above the file explorer tree:

image::hop-gui/perspective-explorer-git-toolbar-operations.png[git toolbar items in the explorer perspective]

Loading