-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noob questions #419
Comments
Hello,
The wiki is world writable, so do not hesitate to add information you found useful in it. I tend to be a little too familiar with Kakoune to see whats missing there. |
Okey, so
|
|
Hi @FranzSkuffka, I'm going to expand on @maww's explanation of the autowrap thing. If you want to wrap lines as you type them, then Unlike with other editors, kakoune's autowrapping current implementation is a passive one: it will just make sure that the text/selection you feed it fit in |
Wow, thanks for this explanation. I will just dump this into the wiki i guess. Have now idea about how to use fmt with kakoune! Can you point me someplace to get started? |
More pressing: I read the section about registers: Is it possible to yank to the system register? I have two tmux panes open and would like to copy from one kak to another. |
Yes. Using a system clipboard tool such To yank: To paste: |
If your kak panes are from the same session (either created through |
When I used autowrap-section on a paragraph and wrote it, it wrote the linebreaks to the file too. Is this intended? I expected kak to write the original buffer and not the draft. Or is autowrap not operating in draft mode? On OSX, the alt-key does not seem to work. |
Hum, seems there is a misunderstanding here, autowrap is not a display thing, it does modify the buffer, draft context dont prevent buffer modification, they prevent user selections/current mode from being modified (a draft context is the similar to what happens when you use two clients on the same buffer, try to do line wrapping as a display only thing is not implemented (yet) in kakoune. |
so what about a layer that does exactly this? like that, we could greatly extend kakoune! |
A special highlighter function could handle line wrapping, however up to now there have always been a 1:1 relation between displayed line and buffer line, and I expect some code to be broken if this assertion does not hold anymore. Regarding selections, as Kakoune displays them, you should not have to count, you can just do 5 hit on |
@FranzSkuffka
Sure, make a selection ( |
I'm sure things will fall into place! I can use this elegant piece of software productively now. Thank you for your patience and support. Will contribute when I see an Opportunity. |
How can I recover a session? |
If kakoune crashed, then you will have some recovery files generated, looking at the code however, I am afraid Kakoune currently considers a SIGHUP (which is what it will get if you close you terminal) as a graceful quit, and hence wont try to backup modified files. That should be changed, If Kakoune quits due to SIGHUP, it definitely should write backup files for every unsaved buffer. In your case, I am afraid you lost the unsaved work. |
Added support for detecting that case, backup files should now be generated on SIGHUP, and the autorestore.kak script should kick in, directly reloading the backup version next time you open the file. |
after looking twice, I realised there was some kind fo backup file which i just could open using kak. |
Hey,
it's me again. Just getting started using this for my projects. But still have a few questions.
Maybe an FAQ section inside the wiki would make sense to provide a quick entry for nubs. This could later be used to write a documentation that is more end-user focused.
The text was updated successfully, but these errors were encountered: