[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master e5707cd 28/62: Table: Completion, all options,
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master e5707cd 28/62: Table: Completion, all options, update comments |
Date: |
Thu, 13 May 2021 22:20:49 -0400 (EDT) |
branch: master
commit e5707cdfa226d3998c29ef7b0f0dfc3aaaec4abc
Author: Pedram Ashofteh Ardakani <pedramardakani@pm.me>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Table: Completion, all options, update comments
With this commit, all options in the 'Table' program are covered.
TODO: Check if we need the autocomplete to print any messages for the
user.
---
bin/table/completion.sh | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/bin/table/completion.sh b/bin/table/completion.sh
index ad61356..6081615 100644
--- a/bin/table/completion.sh
+++ b/bin/table/completion.sh
@@ -208,10 +208,8 @@ _gnuastro_asttable_completions(){
prev="${COMP_WORDS[COMP_CWORD-2]}"
fi
- # A quick check to see if there is already a fits file name invoked in
- # the current commandline. This means the order of commands does matter
- # in this bash completion. If we do not want this, we should implement
- # another method for suggesting completions.
+ # Return the last fits file specified in the commandline. If none,
+ # $fits_name will be a null string, i.e. "".
fits_name="$(_gnuastro_autocomplete_get_fits_name)"
# TODO: Prettify the code syntax, shorter ones on top
@@ -236,22 +234,22 @@ _gnuastro_asttable_completions(){
# Only suggest a fits filename
_gnuastro_autocomplete_list_fits_names
;;
- -c|--column|-r|--range|-s|--sort|-C|--catcolumns)
+ -c|--column|-r|--range|-s|--sort|-C|--catcolumns| \
+ -m|--colmetadata|--inpolygon|--outpolygon| \
+ -e|--equal|-n|--notequal|-b|--noblank)
# The function below returns the columns inside the last fits
# file specified in the commandline. If no fits files were
# detected, there will be no response from autocompletion. This
# might alert the user that something is going wrong.
_gnuastro_autocomplete_list_fits_columns "$fits_name"
;;
- -W|--wcshdu)
+ -W|--wcshdu|-u|--catcolumnhdu|-h|--hdu)
# Description is same as the '--column' option.
_gnuastro_autocomplete_list_fits_hdu "$fits_name"
;;
- -o|--output)
+ -o|--output|--polygon|-H|--head|-t|--tail)
# Do not suggest anything.
;;
- -b|--noblank) ;;
- -h|--hdu) ;;
*) _gnuastro_autocomplete_list_options $PROG_ADDRESS ;;
esac
- [gnuastro-commits] master 90f08c2 53/62: Auto-completion: Refactor ..._is_table function, (continued)
- [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, 2021/05/13
- [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 <=
- [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
- [gnuastro-commits] master 3754f1b 47/62: Auto-completion: Human readable arguments, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master ea08fdb 49/62: Auto-completion: return value from last table, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master ece1614 55/62: Auto complete: separated generic functions from Table's recipe, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master ef351da 56/62: TAB completion: now working for Arithmetic, better infrastructure, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master d2bf2c2 60/62: TAB completion: updated documentation and polished the code, Mohammad Akhlaghi, 2021/05/13