Sublime Forum

Selection of Data for cutting or deleting

#1

Yesterday I was editing a log with about 75000k of data. I decided to shorten the log to the current days output. I put my cursor just above today’s timestamp and selected everything back to the beginning of the file which is slow. There used to be a shortcut of Home, Home Up that would take you to the top of a document but that didn’t work here maybe there’s a better way other than holding the mouse button and hovering the cursor above the top of Sublime? BTW it’s hard to see the highlighting I’m not sure exactly why but my guess would be using a dark theme?

After I finally had the data I wanted to removed selected I hit the delete key but nothing happened. I wasn’t sure if Sublime was processing or doing nothing? Turns out it was doing nothing. Then I tried using the context menu but there’s not even a delete available through the context menu. There is however a cut (ctrl+x) but it’s grayed out so unavailable.

i’ve never had an issue using basic Window’s commands so I’m not sure what or if I’m doing something wrong? Why wouldn’t it delete the data?

I wanted to include an image of the rather weak highlighting just so you could see and maybe tell me how to make it more obvious.

B&W vs Color. I can’t post two images (a silly new person penalty making it harder to help me) so I can’t show you the B&W. The color imo is the worst of the two.

0 Likes

#2

There used to be a shortcut of Home, Home Up that would take you to the top of a document but that didn’t work here maybe there’s a better way other than holding the mouse button and hovering the cursor above the top of Sublime?

ctrl+home takes you to the top of the file.

After I finally had the data I wanted to removed selected I hit the delete key but nothing happened. I wasn’t sure if Sublime was processing or doing nothing? Turns out it was doing nothing. Then I tried using the context menu but there’s not even a delete available through the context menu. There is however a cut (ctrl+x) but it’s grayed out so unavailable.

Are you able to edit the file in other ways, just typing or otherwise? If you’re using a plugin for those logs it could be that it’s set the file to read-only.

0 Likes

#3

It’s just something with the selection of multiple lines. I had tried it multiple times with the same file with no success. Eventually when I had deleted the unwanted data when I tried to save it I was getting a network error saying that the network connection wasn’t available or something to that effect except I could go to my file manager and had no problem accessing the file.

I just did the same selection which I had tried multiple times before and today it worked. This is a different file but they are all built using the same process.

I guess for now I’ll see if it happens again. Although you did give me an idea. These files are appended to at verious times. I guess it’s possible that I was tryiing to change it while it was being updated. I didn’t think that was the case but…

0 Likes