Comments (10)
Try this: find . -type f | awk -F/ '{print NF-1, $0}'
from plug.kak.
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.
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.
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.
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.
Great. I'll fix this in a munite.
from plug.kak.
Should be working now.
from plug.kak.
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.
I hope in the future you add some indicator that plugins were installed successfully
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 usingnvim +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.
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)
- ensure: document deferred loading HOT 5
- nasty errors with `plug http://.../` (final slash) HOT 1
- plug-chain problems HOT 4
- plug theme HOT 3
- double .git stripping HOT 2
- jobs unhack HOT 4
- installing from plug-list doesn't respect plugin options HOT 3
- renaming plugin folders HOT 13
- Add option to skip rebuilding and load prebuilt plugin configuration HOT 1
- Errors in config blocks don't get brought to the user's attention HOT 2
- git URLs for private repos HOT 1
- No indication when the `do` block fails HOT 4
- Branch Specification adds a signifiant delay in startup time HOT 1
- File system loop detected HOT 5
- Check for URL scheme when searching for an URL in the plguin name HOT 5
- Suggestions for plugin authors? HOT 4
- demand doesn't work without a final %{} HOT 2
- Plugin status breaks if reflog empty HOT 3
- Enchance plug-list representation of manually loaded plugins
- defer block not works as expected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plug.kak.