Skip to content

Commit 181526f

Browse files
committed
0.2.0
1 parent cdb27e8 commit 181526f

File tree

4 files changed

+167
-103
lines changed

4 files changed

+167
-103
lines changed

CHANGELOG.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
- 0.1.6
1+
- v0.2.0
2+
- New feature
3+
- added new option `p/permit` to source fish files in the current project without confirmation
4+
- Improvement
5+
- changed config option mode sequence, more user-friendly
6+
- added source failed message
7+
- modified all option process logics & made them consistent
8+
- Refactor
9+
- renamed the inner function option name 'test' to 'quiet'
10+
- modified the help message
11+
- v0.1.6
212
- New feature
313
- added new selection item to open config dir with vscode or filer in config option mode
414
- Improvement
@@ -7,27 +17,27 @@
717
- Refactor
818
- modified exit statuses
919
- split the main func and made a helper for the config option
10-
- 0.1.5
20+
- v0.1.5
1121
- changed selection items in the second loop to be more understandable
1222
- changed failed msg to No files found
1323
- fixed __source-fish_times bug with no argument
1424
- added another loop to config option mode for usability
15-
- 0.1.4
25+
- v0.1.4
1626
- added new option flags `-r` and `--recent` to find recently modified fish files under the current directory
17-
- 0.1.3
27+
- v0.1.3
1828
- fixed help message
1929
- config option: added r/recent option to source recently changed files
20-
- 0.1.2
30+
- v0.1.2
2131
- cleaned code
22-
- 0.1.1
32+
- v0.1.1
2333
- modified test option (now, test option tries to find "./test/" and "./tests/" folders)
24-
- 0.1.0
34+
- v0.1.0
2535
- added question loops
2636
- made find command conditions simple
2737
- added `--config` option to source fish files in the config directory
28-
- 0.0.5
38+
- v0.0.5
2939
- added `v/version`& `h/help` options
3040
- fixed version info
3141
- fixed completions
32-
- 0.0.4
42+
- v0.0.4
3343
- fixed basic source bugs

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ fisher update yo-goto/source-fish
2020
## Usage 🔦
2121

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

101102
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.
102103

103-
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.
104+
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.
104105

105106
## Change Log 🔖
106107

completions/source-fish.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
complete -c source-fish -s v -l version -f -d "Show version info"
22
complete -c source-fish -s h -l help -f -d "Show help"
3+
complete -c source-fish -s p -l permit -f -d "Source fish files without confirmation"
34
complete -c source-fish -s r -l recent -f -d "Find recently modified files & source them"
45
complete -c source-fish -s a -l all -f -d "Source all fish files under the current directory"
56
complete -c source-fish -s t -l test -f -d "Source all fish files in the \"test\" folder"

0 commit comments

Comments
 (0)