Giter Site home page Giter Site logo

A few questions on X removal about kakoune HOT 6 CLOSED

m-kru avatar m-kru commented on May 26, 2024
A few questions on X removal

from kakoune.

Comments (6)

Screwtapello avatar Screwtapello commented on May 26, 2024 1

See #4661, and the commit message for ef8a11b.

In short, x (and therefore X) had complex stateful behaviour that was very convenient for humans but difficult to use in scripts. Now x always extends the beginning of each selection to the beginning of the line, and the end of each selection to the end of the line, rather than sometimes doing that and sometimes selecting the next line instead.

Since X currently has no function, you can map it to xJ for something similar to the previous behaviour (but more predictable).

from kakoune.

arrufat avatar arrufat commented on May 26, 2024 1

@m-kru Check this out: https://github.com/mawww/kakoune/blob/master/doc/pages/changelog.asciidoc#kakoune-20221031

from kakoune.

m-kru avatar m-kru commented on May 26, 2024

Is there any Changelog for Keys? There were more changes that completely destroyed my workflow. I feel like I do not how to edit documents anymore. For example, <space> does not reduce to single selection anymore. My following custom mappings for pasting from xsel stopped working and I have no idea why.

map global user p '<a-!> xsel --output --clipboard <ret>' -docstring 'System Clipboard - Paste After'
map global user P '!xsel --output --clipboard<ret>' -docstring 'System Clipboard - Paste Before'

from kakoune.

krobelus avatar krobelus commented on May 26, 2024

Is there any Changelog for Keys?

clippy should show the changelog on startup. Equivalently, use :doc changelog

from kakoune.

m-kru avatar m-kru commented on May 26, 2024

@krobelus clippy presents overall changelog, and I am interested only in the "Keys Changelog".

from kakoune.

krobelus avatar krobelus commented on May 26, 2024

makes sense. Grepping for < filters it down to

* <a-u> and <a-u> now undo/redo selection changes; the previous meaning of moving in history tree has been moved to <c-j> and <c-k>
* <c-g> cancels the current operation and goes back to the main event loop, this provides an escape hatch when kakoune seems to hang due to a costly operation
* p, p, ! and <a-!> commands now select the inserted text
* x now just extends the selection to contain full lines (as <a-x> did) <a-x> trims partial lines from the selection (as <a-x> did)
* user mappings is now bound to <space> while keeping/removing main selection moved to , and <a-,>

I think if you want the old paste behavior back you could add <semicolon>. But the new behavior seems better

from kakoune.

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.