Giter Site home page Giter Site logo

Random Modifier about vimpc HOT 4 CLOSED

boysetsfrog avatar boysetsfrog commented on July 17, 2024
Random Modifier

from vimpc.

Comments (4)

boysetsfrog avatar boysetsfrog commented on July 17, 2024

I like this idea, i am not sure what else the random modifier would really apply to other than add or delete (even delete is a bit strange) but i don't see any problem with this. It sounds good.

from vimpc.

boysetsfrog avatar boysetsfrog commented on July 17, 2024

'z' is actually in use though for aligning a particular line to a given spot within the screen, z- for bottom, z. for centre z for top. No idea what key to use, anything not in use is fine for now, i probably need to tidy up the keys a bit and hurry up and add some kind of mapping facility.

from vimpc.

richo avatar richo commented on July 17, 2024

Aha, so it is.

Likewise I think it's only "proper" use is for adding, but I'll add it to all the commands it could theoretically modify for completeness.

I'll probably make pressing it twice in the playlist view shuffle it twice too.

from vimpc.

richo avatar richo commented on July 17, 2024

I got some time to play with this last night (finally).

I think a better implementation may be as a movement, rather than a modifier, which is a little counterintuitive, but also clears up a bunch of edge cases.

ie,

15ar add 15 random songs from the current context
aG add all songs from current cursor position to the end of the current context
2dr remove 2 random songs from the playlist

This basically removes the possibility of someone asking to remove all random songs from the playlist.

The downside to doing this is that it would require pretty drastic refactoring to hang add off an ActionTable, so I may get you to have a look over a patch when I'm halfway through to check that it looks sane.

from vimpc.

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.