Git Product home page Git Product logo

Comments (8)

fdncred avatar fdncred commented on July 29, 2024 1

yes! I'm on a mac though, so I had to change the modifier to control and keycode to other key. but finally it works, thank you!👍

been there. done that. i use a mac too during the evenings and weekends. keybindings are sometimes hard to get recognized. it's why i wrote keybindings listen and someone else wrote input listen.

from nushell.github.io.

fdncred avatar fdncred commented on July 29, 2024

Good idea. They should be mentioned.

from nushell.github.io.

BatmanAoD avatar BatmanAoD commented on July 29, 2024

One major difference is that by default, Enter performs the substitution rather than running the command as usual. In a recent-enough Bash, you can configure Space to do this (see this blog post).

from nushell.github.io.

fdncred avatar fdncred commented on July 29, 2024

ya, that would be cool to have space expand it. i really wish we could combine this stuff with an fish abbrev-like functionality. they're very similar, one gets that last commands and one just expands aliases.

from nushell.github.io.

orr721 avatar orr721 commented on July 29, 2024

Is it possible to map !$ to some other key combination? Unfortunately on my keyboard layout to execute !$<Enter> requires 5 key presses (shift to get !, alt to get $). I am longing for bash <Esc>. all the time (2 key presses). A user defined combination would be great..

from nushell.github.io.

sholderbach avatar sholderbach commented on July 29, 2024

I am longing for bash <Esc>. all the time (2 key presses). A user defined combination would be great..

Worth checking the https://github.com/nushell/reedline/issues and adding a feature request there, maybe someone is interested in figuring this out :)

from nushell.github.io.

fdncred avatar fdncred commented on July 29, 2024

@orr721 I believe this works

  {
    name: insert_last_token
    modifier: alt
    keycode: char_.
    mode: [emacs vi_normal vi_insert]
    event: [
      { edit: InsertString, value: " !$" }
      { send: Enter }
    ]
  }

from nushell.github.io.

orr721 avatar orr721 commented on July 29, 2024

yes! I'm on a mac though, so I had to change the modifier to control and keycode to other key. but finally it works, thank you!👍

from nushell.github.io.

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.