From ebcfc46b7213e9c70f5011498f2d970904dc18b2 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Sun, 14 Feb 2016 00:29:43 -0700 Subject: [PATCH] Comment formatting --- src/bind.zsh | 6 +++--- src/config.zsh | 6 +++--- src/deprecated.zsh | 6 +++--- src/highlight.zsh | 6 +++--- src/start.zsh | 6 +++--- src/suggestion.zsh | 6 +++--- src/widgets.zsh | 6 +++--- zsh-autosuggestions.zsh | 42 ++++++++++++++++++++--------------------- 8 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/bind.zsh b/src/bind.zsh index baf4494..12dbfac 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -1,7 +1,7 @@ -#----------------# -# Widget Helpers # -#----------------# +#--------------------------------------------------------------------# +# Widget Helpers # +#--------------------------------------------------------------------# # Bind a single widget to an autosuggest widget, saving a reference to the original widget _zsh_autosuggest_bind_widget() { diff --git a/src/config.zsh b/src/config.zsh index d0bad9e..5ebf7ab 100644 --- a/src/config.zsh +++ b/src/config.zsh @@ -1,7 +1,7 @@ -#--------------------------------# -# Global Configuration Variables # -#--------------------------------# +#--------------------------------------------------------------------# +# Global Configuration Variables # +#--------------------------------------------------------------------# # Color to use when highlighting suggestion # Uses format of `region_highlight` diff --git a/src/deprecated.zsh b/src/deprecated.zsh index a369135..48753ac 100644 --- a/src/deprecated.zsh +++ b/src/deprecated.zsh @@ -1,7 +1,7 @@ -#-------------------------------------# -# Handle Deprecated Variables/Widgets # -#-------------------------------------# +#--------------------------------------------------------------------# +# Handle Deprecated Variables/Widgets # +#--------------------------------------------------------------------# unset _ZSH_AUTOSUGGEST_DEPRECATED_START_WIDGET_WARNING_SHOWN diff --git a/src/highlight.zsh b/src/highlight.zsh index ecce3d1..41cc0ac 100644 --- a/src/highlight.zsh +++ b/src/highlight.zsh @@ -1,7 +1,7 @@ -#--------------# -# Highlighting # -#--------------# +#--------------------------------------------------------------------# +# Highlighting # +#--------------------------------------------------------------------# # If there was a highlight, remove it _zsh_autosuggest_highlight_reset() { diff --git a/src/start.zsh b/src/start.zsh index 3b0d841..54f5bb8 100644 --- a/src/start.zsh +++ b/src/start.zsh @@ -1,7 +1,7 @@ -#-------# -# Start # -#-------# +#--------------------------------------------------------------------# +# Start # +#--------------------------------------------------------------------# # Start the autosuggestion widgets _zsh_autosuggest_start() { diff --git a/src/suggestion.zsh b/src/suggestion.zsh index 54ca892..fd94d4c 100644 --- a/src/suggestion.zsh +++ b/src/suggestion.zsh @@ -1,7 +1,7 @@ -#------------# -# Suggestion # -#------------# +#--------------------------------------------------------------------# +# Suggestion # +#--------------------------------------------------------------------# # Get a suggestion from history that matches a given prefix _zsh_autosuggest_suggestion() { diff --git a/src/widgets.zsh b/src/widgets.zsh index 70c7965..cd4642d 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -1,7 +1,7 @@ -#------------------------------------# -# Autosuggest Widget Implementations # -#------------------------------------# +#--------------------------------------------------------------------# +# Autosuggest Widget Implementations # +#--------------------------------------------------------------------# # Clear the suggestion _zsh_autosuggest_clear() { diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 37e8e10..501a051 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -25,9 +25,9 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. -#--------------------------------# -# Global Configuration Variables # -#--------------------------------# +#--------------------------------------------------------------------# +# Global Configuration Variables # +#--------------------------------------------------------------------# # Color to use when highlighting suggestion # Uses format of `region_highlight` @@ -86,9 +86,9 @@ ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS=( vi-forward-blank-word-end ) -#-------------------------------------# -# Handle Deprecated Variables/Widgets # -#-------------------------------------# +#--------------------------------------------------------------------# +# Handle Deprecated Variables/Widgets # +#--------------------------------------------------------------------# unset _ZSH_AUTOSUGGEST_DEPRECATED_START_WIDGET_WARNING_SHOWN @@ -125,9 +125,9 @@ _zsh_autosuggest_deprecated_start_widget() { zle -N autosuggest-start _zsh_autosuggest_deprecated_start_widget -#----------------# -# Widget Helpers # -#----------------# +#--------------------------------------------------------------------# +# Widget Helpers # +#--------------------------------------------------------------------# # Bind a single widget to an autosuggest widget, saving a reference to the original widget _zsh_autosuggest_bind_widget() { @@ -205,9 +205,9 @@ _zsh_autosuggest_invoke_original_widget() { fi } -#--------------# -# Highlighting # -#--------------# +#--------------------------------------------------------------------# +# Highlighting # +#--------------------------------------------------------------------# # If there was a highlight, remove it _zsh_autosuggest_highlight_reset() { @@ -227,9 +227,9 @@ _zsh_autosuggest_highlight_apply() { fi } -#------------------------------------# -# Autosuggest Widget Implementations # -#------------------------------------# +#--------------------------------------------------------------------# +# Autosuggest Widget Implementations # +#--------------------------------------------------------------------# # Clear the suggestion _zsh_autosuggest_clear() { @@ -314,9 +314,9 @@ _zsh_autosuggest_widget_clear() { zle -N autosuggest-accept _zsh_autosuggest_widget_accept zle -N autosuggest-clear _zsh_autosuggest_widget_clear -#------------# -# Suggestion # -#------------# +#--------------------------------------------------------------------# +# Suggestion # +#--------------------------------------------------------------------# # Get a suggestion from history that matches a given prefix _zsh_autosuggest_suggestion() { @@ -333,9 +333,9 @@ _zsh_autosuggest_suggestion() { echo ${history_matches[1]} } -#-------# -# Start # -#-------# +#--------------------------------------------------------------------# +# Start # +#--------------------------------------------------------------------# # Start the autosuggestion widgets _zsh_autosuggest_start() {