Code Monkey home page Code Monkey logo

Comments (3)

hchbaw avatar hchbaw commented on June 7, 2024

Hi, Joe! Thanks very much for your feedback!

For now, the order does not matter if you use with zsh-syntax-highlighting only.
But if you use it with some other zsh-contribs, it will be matter.

I've been playing/experimenting with select-word-style + url-quote-magic + zsh-syntax-highlighting.
In this particular case, I have to source/configure these things in this order.

  1. autoload and configure select-word-style and url-quote-magic then
  2. source zsh-syntax-highlighting and at last
  3. source auto-fu.zsh

So, I want to say that please source auto-fu.zsh at the very last of ~/.zshrc :)

(Ah sorry.
If you want to play with these combination with the recent zsh-syntax-highlighting, you also need this patch
Sorry for the inconvenience, I will push this out for some time.)

diff --git a/auto-fu.zsh b/auto-fu.zsh
index 009891d..163603b 100644
--- a/auto-fu.zsh
+++ b/auto-fu.zsh
@@ -1401,7 +1401,7 @@ afu-initialize-register-zle-contrib-all () {
           # _zsh_highlight only
           afu-initialize-register-zle-contrib~ $bname $uname t
           ;;
-        ((#b)(*) '&& _zsh_highlight')
+        ((#b)(*) '-- "$@" && _zsh_highlight')
           # _zsh_highlight plus custom widget
           afu-initialize-register-zle-contrib~ $bname \
             ${${widgets[${match}]}#user:} nil $uname

from auto-fu.zsh.

joe9 avatar joe9 commented on June 7, 2024

Can you please check this commit into the pu branch?

from auto-fu.zsh.

hchbaw avatar hchbaw commented on June 7, 2024

I've pushed this hunk into pu.

Thank you for your suggestion!

from auto-fu.zsh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.