Giter Club home page Giter Club logo

Comments (10)

andreyorst avatar andreyorst commented on May 25, 2024 1

Try this: find . -type f | awk -F/ '{print NF-1, $0}'

from plug.kak.

andreyorst avatar andreyorst commented on May 25, 2024

I've thought that awk is more portable. Can you please try to find a proper command for awk that will count / in the string and print it in the format of number_of_slashes the_string. Also if something like GNU awk is available can you please test it too? I have no macOS to test it, sorry.

find . -type f -name "*.kak" | awk -F/ '{print NF-1, $F}' | sort -n | cut -d' ' -f2

Basically this helps to sort output by printing the less nested files first.

from plug.kak.

evanrelf avatar evanrelf commented on May 25, 2024

Installing GNU Awk (version 4.2.1) from Homebrew (brew install gawk) made the awk errors go away, and it seems like plug-install worked because my plugins are working, but the Done installing plugins message never appeared.

I can try experimenting more later today.

from plug.kak.

andreyorst avatar andreyorst commented on May 25, 2024

It works for me on freebsd. AFAIK macOS uses the same awk.

Done installing plugins

I've removed the message, because it was showing irrelevant info about plug state if some hooks were running in background.

from plug.kak.

evanrelf avatar evanrelf commented on May 25, 2024

Try this: find . -type f | awk -F/ '{print NF-1, $0}'

That works! This is the output with the default awk command (not GNU Awk):

~/.config/kak/plugins λ find . -type f -name "*.kak" | awk -F/ '{print NF-1, $0}'
3 ./kakoune-number-toggle/rc/number-toggle.kak
2 ./kakoune-surround/surround.kak
3 ./kak-lsp/rc/lsp.kak
3 ./plug.kak/rc/plug.kak
2 ./kakoune-text-objects/text-objects.kak
2 ./kakoune-auto-percent/auto-percent.kak

from plug.kak.

andreyorst avatar andreyorst commented on May 25, 2024

Great. I'll fix this in a munite.

from plug.kak.

andreyorst avatar andreyorst commented on May 25, 2024

Should be working now.

from plug.kak.

evanrelf avatar evanrelf commented on May 25, 2024

I've removed the message, because it was showing irrelevant info about plug state if some hooks were running in background.

I hope in the future you add some indicator that plugins were installed successfully. Having the "done" message is reassuring that everything finished.

Is it possible to do something like kak -e 'plug-clean; plug-update; quit' to update plugins as part of an update script? I've been using nvim +PlugClean! +PlugUpgrade +"PlugUpdate --sync" +qa in my update script to update Vim plugins, and I wonder if it's possible to replicate in Kakoune.

from plug.kak.

andreyorst avatar andreyorst commented on May 25, 2024

I hope in the future you add some indicator that plugins were installed successfully

#10

Basically in current state this message was shown after the download process of every plugin is done, and pkst-install hooks were ignored. I've decided to disable it, because I've encountered a situation where Ive downloaded plugon and exited Kakoune before it finished building. This needs to be reworked.

Is it possible to do something like kak -e 'plug-clean; plug-update; quit' to update plugins as part of an update script? I've been using nvim +PlugClean! +PlugUpgrade +"PlugUpdate --sync" +qa in my update script to update Vim plugins, and I wonder if it's possible to replicate in Kakoune

Let's have a separate Issue for this?

from plug.kak.

evanrelf avatar evanrelf commented on May 25, 2024

I was just curious, but we can move it to a new issue if it’s a feature you’re open to.

from plug.kak.

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.