[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 9ae830f 34/62: Table: Completion, replace doub
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 9ae830f 34/62: Table: Completion, replace double negative |
Date: |
Thu, 13 May 2021 22:20:50 -0400 (EDT) |
branch: master
commit 9ae830f918eb6856cf238578c5cbe2e86487a911
Author: Pedram Ashofteh Ardakani <pedramardakani@pm.me>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Table: Completion, replace double negative
Until now, complete had the 'nospace' option by default, and it would
turn it off whenever there were no '=' signs in the 'COMPREPLY'. With
this commit, the 'nospace' option is off by default. It is only turned
on when there is a '=' sign in the 'COMPREPLY'. The logic might be a bit
more clear now.
---
bin/table/completion.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/table/completion.sh b/bin/table/completion.sh
index 1fd98d0..339dfb8 100644
--- a/bin/table/completion.sh
+++ b/bin/table/completion.sh
@@ -297,11 +297,11 @@ _gnuastro_asttable_completions(){
*) _gnuastro_autocomplete_list_options $PROG_ADDRESS ;;
esac
- if [[ ! "${COMPREPLY[@]}" =~ "=" ]]; then
+ if [[ "${COMPREPLY[@]}" =~ "=" ]]; then
# Do not append 'space' character to the end of line in case there
# is a long option present in the suggestions. Please note that
# long options always have a '=' suffix.
- compopt +o nospace
+ compopt -o nospace
fi
# Be verbose in debugging mode, where $db is set to '0'.
@@ -327,7 +327,7 @@ EOF
-complete -F _gnuastro_asttable_completions -o nospace asttable
+complete -F _gnuastro_asttable_completions asttable
- [gnuastro-commits] master e690fc5 37/62: Bash completion: renamed fixed file to completion.bash, (continued)
- [gnuastro-commits] master e690fc5 37/62: Bash completion: renamed fixed file to completion.bash, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 229ac51 41/62: /bin/table/completion.bash: Refactor code, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 50026ec 48/62: Auto-completion: Rename boolean query functions, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 8150e1c 50/62: Auto-completion: Refactor FITS related functions, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master afadccf 52/62: Auto-completion: Call ..._last_table where needed, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 90f08c2 53/62: Auto-completion: Refactor ..._is_table function, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 4598eba 54/62: Auto-completion: clean re-implementation for Table, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 59669d9 61/62: Book: new section on known issues with Crop, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master b947f79 62/62: TAB completion: enabled in Fits program, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master acf58c1 58/62: TAB completion: now supported in ConvertType and Convolve, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 9ae830f 34/62: Table: Completion, replace double negative,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 7f1a203 35/62: Book: Autocompletion for developers example, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 6379566 36/62: Book: edits to the Bash auto-completion section, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 9335953 44/62: Auto-completion: Faster fits parse, use 'local', Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 284a32e 51/62: Auto-completion: Debug -i, improve performance, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master e5707cd 28/62: Table: Completion, all options, update comments, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 88806f2 38/62: bin/table/completion.bash: improvements to find good table name, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 1bf469f 40/62: /bin/table/completion.bash: consider short opt '-i', Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master e340452 42/62: Auto-completion: Minor polishing of the warning message, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master e444941 45/62: Auto-completion: Call astfits/asttable consistently, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 04ee1fe 46/62: Auto-completion: Suggest plaintext tables too, Mohammad Akhlaghi, 2021/05/13