easy-kill icon indicating copy to clipboard operation
easy-kill copied to clipboard

Other useful kill-targets

Open bbatsov opened this issue 10 years ago • 21 comments

I think it'd be great if easy-kill supported out-of-the-box a few extra kill targets, namely:

  • whole buffer
  • from current point to end of buffer
  • from current point to beginning of buffer
  • from current point to end of line
  • from current point to beginning of line
  • sentence
  • paragraph
  • previous line
  • next line

bbatsov avatar Jun 02 '14 12:06 bbatsov

I agree. It would free many key bindings.

It also makes it more consistent and completely solves this issue: https://github.com/leoliu/easy-kill/issues/16

tuhdo avatar Jun 02 '14 13:06 tuhdo

Hi all,

Sorry for my delay and thanks for the report.

Do you mean add them to easy-kill-alist i.e. give each a custom key, or just add these things for users to pick and use?

Leo

leoliu avatar Jun 07 '14 02:06 leoliu

Yes, give them prefix M-w as other easy-kill objects.

tuhdo avatar Jun 07 '14 05:06 tuhdo

What @tuhdo just said. :-)

bbatsov avatar Jun 07 '14 05:06 bbatsov

I am particularly excited about:

  • from current point to end of line
  • from current point to beginning of line

I would use those daily.

holocronweaver avatar Sep 15 '14 17:09 holocronweaver

Thanks, I'll get to this issue soon, hopefully. I have an idea to integrate such things nicely with easy-kill. Thanks to all for the input.

leoliu avatar Sep 16 '14 05:09 leoliu

I've been so much in love with easy-kill I created an extension package for it: https://github.com/knu/easy-kill-extras.el

I think it now has almost everything mentioned in this issue. You can install it from MELPA.

knu avatar Sep 30 '14 12:09 knu

@knu Why not merge this with upstream easy-kill?

holocronweaver avatar Sep 30 '14 14:09 holocronweaver

@holocronweaver I don't know.

knu avatar Sep 30 '14 14:09 knu

@knu already proposed a couple of pull requests, but they haven't been accepted yet. Guess @leoliu is busy.

bbatsov avatar Sep 30 '14 14:09 bbatsov

I think they need some tests before they can be merged. I'll work on it when I get the time.

knu avatar Sep 30 '14 15:09 knu

@knu If that will be awhile, I can write the tests.

holocronweaver avatar Sep 30 '14 15:09 holocronweaver

@holocronweaver That will be great, please go ahead!

knu avatar Sep 30 '14 16:09 knu

i am interested in a merge of this

y2rayk avatar Mar 11 '15 14:03 y2rayk

So, any news of this ?

Yevgnen avatar Dec 12 '16 08:12 Yevgnen

Anything? :)

manuel-uberti avatar Mar 26 '18 07:03 manuel-uberti

Sorry I haven't been able to give this package much time due to life and work. I wonder if anyone is interested in taking over? Thanks.

leoliu avatar Mar 26 '18 14:03 leoliu

@leoliu I think I can work on this as a co-maintainer and help deal with issues and bring in new features.

knu avatar Jun 09 '18 07:06 knu

@leoliu I can help from time to time as well.

bbatsov avatar Jun 09 '18 07:06 bbatsov

Hi @knu and @bbatsov,

Thank you very much. I have invited both of you to join the repo.

Thanks again. Leo

leoliu avatar Jun 09 '18 09:06 leoliu

Thanks!

bbatsov avatar Jun 09 '18 10:06 bbatsov