Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yo-goto committed Feb 15, 2022
1 parent cdb27e8 commit 181526f
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 103 deletions.
28 changes: 19 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
- 0.1.6
- v0.2.0
- New feature
- added new option `p/permit` to source fish files in the current project without confirmation
- Improvement
- changed config option mode sequence, more user-friendly
- added source failed message
- modified all option process logics & made them consistent
- Refactor
- renamed the inner function option name 'test' to 'quiet'
- modified the help message
- v0.1.6
- New feature
- added new selection item to open config dir with vscode or filer in config option mode
- Improvement
Expand All @@ -7,27 +17,27 @@
- Refactor
- modified exit statuses
- split the main func and made a helper for the config option
- 0.1.5
- v0.1.5
- changed selection items in the second loop to be more understandable
- changed failed msg to No files found
- fixed __source-fish_times bug with no argument
- added another loop to config option mode for usability
- 0.1.4
- v0.1.4
- added new option flags `-r` and `--recent` to find recently modified fish files under the current directory
- 0.1.3
- v0.1.3
- fixed help message
- config option: added r/recent option to source recently changed files
- 0.1.2
- v0.1.2
- cleaned code
- 0.1.1
- v0.1.1
- modified test option (now, test option tries to find "./test/" and "./tests/" folders)
- 0.1.0
- v0.1.0
- added question loops
- made find command conditions simple
- added `--config` option to source fish files in the config directory
- 0.0.5
- v0.0.5
- added `v/version`& `h/help` options
- fixed version info
- fixed completions
- 0.0.4
- v0.0.4
- fixed basic source bugs
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ fisher update yo-goto/source-fish
## Usage 🔦

```console
Usage:
USAGE:
source-fish [OPTION]
source-fish DIRECOTRIES...
Options:
OPTIONS:
-v, --version Show version info
-h, --help Show help
-p, --permit Source fish files without confirmation
-r, --recent Find recently modified files (within 1 hour) & source them
-a, --all Source all fish files under the current directory
-t, --test Source all fish files in the "test" folder
Expand Down Expand Up @@ -100,7 +101,7 @@ Source? [y/yes | r/result&source | p/print | b/back | e/exit ]: r

In the first question, you can select options to source directories. `r/recent` finds reacently modified files (within 1 hour). `a/all` finds all fish files in the config directory.

In the second question, you can check the selected fish files with `p` or `print` without sourcing. To source files and check the results at the same time, type `r` or `result`. To go back to select config, type `b` or `back`. Typing `s` or `source` results in sourcing fish files in the selected directory without printing results.
In the second question, you can check the selected fish files with `p` or `print` without sourcing. To source files and check the results at the same time, type `y` or `yes`. To source them without printing results, type `q` or `quiet`. To go back to select config, type `b` or `back`. Typing `s` or `source` results in sourcing fish files in the selected directory without printing results.

## Change Log 🔖

Expand Down
1 change: 1 addition & 0 deletions completions/source-fish.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
complete -c source-fish -s v -l version -f -d "Show version info"
complete -c source-fish -s h -l help -f -d "Show help"
complete -c source-fish -s p -l permit -f -d "Source fish files without confirmation"
complete -c source-fish -s r -l recent -f -d "Find recently modified files & source them"
complete -c source-fish -s a -l all -f -d "Source all fish files under the current directory"
complete -c source-fish -s t -l test -f -d "Source all fish files in the \"test\" folder"
Expand Down
Loading

0 comments on commit 181526f

Please sign in to comment.