Doraken
d6327c46f2
update stack trace 2
2023-08-02 13:05:59 +02:00
John D Pell
00e3955dd3
lib/preview: add full completion
2022-02-07 15:27:03 -08:00
John D Pell
a9a40a3cad
lib/helpers: add `preview` to `bash-it` spaghetti
2022-02-07 15:27:03 -08:00
John D Pell
5f9a3f143f
completion/bash-it: rename `_bash-it-comp()`
...
...to `_bash-it()`.
The norm is for the completion function for, e.g., `teh_cmd`. to be named with the same name and a prepended underscore, i.e. `_teh_cmd`. This alsö reduces namespace confusion, which will be relevant in a future patch.
2022-01-24 21:41:23 -08:00
John D Pell
2f4ed49a71
completion/bash-it: adopt `_compreply_candidates()`
2022-01-24 21:41:13 -08:00
John D Pell
e1e971c0ea
completion/bash-it: use `read -a` to populate `$COMPREPLY`
...
This allows for spaces and special characters in file names, i.e. internaltional/unicode words.
2022-01-24 21:41:13 -08:00
John D Pell
3874ad85c2
completion/bash-it: use existing functions
2022-01-24 21:41:13 -08:00
John D Pell
d7695d5456
completion/bash-it: `shfmt`
2022-01-24 21:41:13 -08:00
Noah Gorny
2e968c459c
Merge pull request #1989 from tsiflimagas/bashit-completions-performance
...
Bash-it completions performance improvement
2022-01-07 08:55:46 +02:00
Kostas Giapis
45e8c4e3cd
Handle `restart` completions
2021-12-30 17:03:23 +02:00
Kostas Giapis
2a2cc72541
Make parameter truncation greedy
2021-12-30 17:01:22 +02:00
Kostas Giapis
476159eab9
Use bash features as much as possible
2021-12-11 17:48:33 +02:00
Kostas Giapis
15fe122c1f
Make more variables local
2021-12-03 06:31:28 +02:00
Kostas Giapis
4d821338a3
Double quote some variables
2021-12-03 06:31:28 +02:00
Kostas Giapis
9c4f7773b9
Improve performance for the rest of bash-it completions
2021-12-03 06:31:16 +02:00
Kostas Giapis
5b29d3c6e6
Improve performance of 'bash-it enable' completions
2021-12-03 06:29:39 +02:00
Noah Gorny
7fc003b7d6
completion: Add completion for bash-it profile rm/list
2021-09-29 00:30:24 +03:00
Noah Gorny
eaa2f829bd
completion: Add bash-it profile subcommand
2021-09-29 00:30:23 +03:00
Noah Gorny
c387517122
Merge pull request #1626 from NoahGorny/update-to-stable-or-unstable
...
bash-it update to stable or dev
2020-10-16 14:16:06 +03:00
Noah Gorny
2fd1cd66e4
completion: Add --silent and -s completion
2020-10-13 14:42:02 +03:00
Noah Gorny
1bdcacf242
completion: Update completion for new bash-it update
...
Also fix the update completion test
2020-10-13 14:42:02 +03:00
Noah Gorny
f4279e63c1
Add bash-it restart command
...
Also add completion and completion tests
2020-10-12 15:29:36 +03:00
Noah Gorny
1e674643b3
completion: Add bash-it doctor completion
...
Also fix the tests and add a new one
2020-06-23 15:12:43 +03:00
Piotr Rogoża
89d1661d23
Replaced reload section with proper function.
...
Added completion for reload.
Fixed order in completion
Added unit tests for completion
The variable BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE has to be unset.
2018-04-18 21:51:20 +02:00
Piotr Rogoża
b1dbf2f7e0
Added additional parameter for bash-it: reload
...
Added creating an alias if command does not exist
2018-04-18 21:51:20 +02:00
Mike Fiedler
47041bc817
Add bash-it completion for version command
...
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-29 17:15:14 -04:00
Nils Winkler
1a80d892ad
Made sorting of completions consistent across OS
2017-09-17 21:05:59 +02:00
Nils Winkler
5c66f478dd
Completed test suite for Bash-it completion
2017-09-17 21:05:58 +02:00
Nils Winkler
cd578f8772
More tests for completion
2017-09-17 21:05:58 +02:00
Nils Winkler
757d2b4ed9
Removed unused variable
2017-09-17 21:05:58 +02:00
Nils Winkler
c786c14859
Fixed "bash-it help aliases" completion - it will now show the available aliases
2017-09-17 21:05:58 +02:00
Nils Winkler
e0dc7997c8
Fixed handling of components with dashes or dots in the name for completion
2017-09-17 21:05:58 +02:00
Nils Winkler
ec327486ef
Checking global directory for completions as well
2017-09-17 21:05:58 +02:00
Nils Winkler
607c9cd049
Cleaned up declarations
2017-09-17 21:05:58 +02:00
Nils Winkler
22674ce1e0
Replaced -e glob-based implementation with ls
2017-09-17 21:05:58 +02:00
Nils Winkler
a925f5d58c
Checking for global directory when looking for components that are not enabled
2017-09-17 21:05:58 +02:00
Nils Winkler
752d4afe41
Tabs to spaces
2017-09-17 21:05:58 +02:00
Nils Winkler
7a3603f80d
Sorting compgen output so that the returned values are in ascending order
2017-09-17 21:05:58 +02:00
Nils Winkler
e7298a5303
Fixed case where nothing was enabled
2017-09-17 21:05:58 +02:00
Yushin Washio
d98a0038d3
bash-it.completion suppress ls error when none found
2017-08-17 17:08:58 +05:00
Nils Winkler
f221f63d7d
Add completion for help command, and help for migrate
2017-06-24 17:31:31 +02:00
Nils Winkler
0d9a0987d9
Fixed missing quotes around $BASH_IT variable
...
This should fix most issues where Bash-it is installed in a directory
containing spaces.
2017-06-24 17:31:30 +02:00
Nils Winkler
c2446c2692
Added new "bash-it migrate" command that migrates components from the old syntax to the new one that uses the load priority
2017-06-24 17:31:30 +02:00
Nils Winkler
56d0f56714
Filter out items that are already enabled
2017-06-24 17:31:30 +02:00
Nils Winkler
2e0ceba776
Supporting both old and new link structure for completion
2017-06-24 17:31:30 +02:00
con-f-use
43a63965ee
Alias and complete common misspellings of bash-it
2017-03-17 20:29:02 +01:00
Konstantin Gredeskoul
fd3d305fad
Faster search, and cleaner completion
2016-03-24 02:54:30 -07:00
Konstantin Gredeskoul
c0a657270c
Add bash-it search functionality
...
- "bash-it search term1 [term2]...."
- we are using existing 'bash-it show plugins|aliases|completions'
commands output, to search (with grep) for lines that match the
search terms, and then output the matches.
- wrote a simple unit test that for whatever reason fails on Travis,
so wrapped it in 'if "Darwin"'...
2016-03-23 23:13:51 -07:00
Eduardo Bellido Bellido
5c6de8ca67
Add new udpate command to Bash it completion
2016-02-05 18:48:32 +01:00
crazygit
a42e5f4d73
add bulk enable or disable function
2015-10-23 00:07:35 +08:00