Coder Social home page Coder Social logo

Select & Delete text feature about terminus HOT 7 OPEN

randy3k avatar randy3k commented on July 17, 2024
Select & Delete text feature

from terminus.

Comments (7)

randy3k avatar randy3k commented on July 17, 2024

Are you running cmd.exe?

from terminus.

randy3k avatar randy3k commented on July 17, 2024

I guess we just need to implement ctrl+home and ctrl+end.

Ps: closed by accident

from terminus.

randy3k avatar randy3k commented on July 17, 2024

7dd50b7 add ctrl+home and ctrl+end ultilities to remove text.

from terminus.

brupelo avatar brupelo commented on July 17, 2024

Are you running cmd.exe?

You mean in the posted video? Yeah, that one was recorded spawning cmd on top of conemu.

I've pulled master and tried the new shortcuts... mmm... how difficult would be to implement something like this?

from terminus.

randy3k avatar randy3k commented on July 17, 2024

In theory, it is doable. The implementation won't be standard, so there are a few things that we need to address. What if the selected text is read-only? How conemu handles it? Does it only delete text in the current line?

from terminus.

brupelo avatar brupelo commented on July 17, 2024

Mmm, it seems conemu has 2 section modes:

  1. When using shift+arrow_keys it seems internally conemu is detecting what's readonly and non-readonly
  2. Selection mode is made with the mouse, in this case it seems Conemu wont' allow to delete any kind of text.

Here's a little demo... In any case, maybe terminus could do much better as SublimeText text management is much better than conemu's one. Guess the idea will be to figure out which parts of the view are editable and which ones are not. For instance:

  • output dumped on the terminal generated by processes, commands executed have become readonly
  • text written by users that hasn't been still executed is readonly

In fact, maybe it's a matter of knowing all the time what are these 2 regions, ie:

funny_explanation

I guess if were able to track from the very beginning the intersection point to discard non-readonly content you'd be able to use the whole SublimeText power to manage/edit views really well... even using multiselection would become feasible... :)

Dunno, maybe just talking nonsense... in any case, you're the expert here so you'll know the best way to tackle this useful feature.

from terminus.

randy3k avatar randy3k commented on July 17, 2024

It looks more tricky than I originally thought. Your best bet for now is to use ctrl+arrow, ctrl+backspace, ctrl+delete and ctrl+home/end.

from terminus.

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.