6

I use "Paste as New Layer" all of the time. Typically I am zoomed in on an area (say bottom right of image) when I cut a region and 'paste as new layer'. I want to place the pasted layer somewhere in the area that I am working on (bottom right of image), but the only way I can get the pasted layer is to move to the top left of the image and drag it all the way across. Very time consuming.

Is there a way in which "paste as new layer" can be configured so that the pasted layer appears in the top left of the window instead of the top left of the image?

4 Answers 4

6

I don't know of a way to configure this in GIMP - chances are there doesn't exist one. However, I can think of a workaround: In the menu under Edit->Keyboard Shortcuts, you can assign your own shortcuts to various GIMP functions (I'm assuming you already know this, but I'm writing for the general public here).

If you search for "New Layer", a shortcut by the name layers-new should pop up. This is the shortcut that will convert a floating selection to a new layer. So my suggestion is to revert to using the standard paste functionality, and simply assign a convenient shortcut to the layers-new command (something like Ctrl-B is pretty good, so you can quickly hit Ctrl-V and Ctrl-B in succession).

This is of course far from ideal, but I still think it's quite a solid workaround since you'll only lose one keystroke per paste operation.

4
  • 1
    Awesome!! Thanks heaps - I can assign a shortcut as you say to "Layer->To New Layer" which appears when I do the paste. That is far better way than what I've been doing. You deserve 100 upvotes in my opinion!
    – SparkyNZ
    Commented Aug 3, 2017 at 4:01
  • 1
    Sorry, wrong answer, you don't need to define a specific shortcut for Layer>To new layer, it's already there.
    – xenoid
    Commented Aug 3, 2017 at 11:30
  • @xenoid You're correct, the shortcut is already there. But rather than just saying "There is a shortcut", I think it makes sense to highlight how someone would go about solving a similar problem on their own (namely open up shortcut menu and then searching), especially for users that aren't familiar with GIMP. Commented Aug 3, 2017 at 13:19
  • 1
    This would be a good answer if the question was how to define shortcuts in general. But here it makes you so something useless, and in fact misguided, because you change the shortcut for both Layer>New layer and Layer>To new layer. This is a standard and often used shortcut that you'll find in plenty of tutorials, and if you follow that answer and change the shortcut, plenty of tutorials or answers to questions won't work for you.
    – xenoid
    Commented Aug 3, 2017 at 14:04
8

Most people use Edit>Paste, Layer>To new layer, so, with the standard shortcuts, have trained their fingers for Ctrl-V, Ctrl-Shift-N. This because when there is a "floating selection" (which is what happens with Edit>Paste), Layer>New layer becomes Layer>To new layer and inherits its shortcut.

To answer some more of the question. Edit>Paste pastes the clipboard centered on the current selection (so if you just did a Ctrl-C in Gimp, the pasted bit is exactly over its source location), which is why you see it when zoomed in. By contrast Edit>Paste as>New layer pastes in the top left corner.

Also, no way to do what you want with a script or plugin, these are not allowed to interact with the UI, so they couldn't tell how much you are zoomed in or what are the coordinates of the part that you actually see.

1
  • Solution without any need of edit default shortcuts. Nice. Thank you. Commented Jun 14, 2018 at 12:58
2

For Gimp 2.10

Since this Gimp 2.10 has shown up since this question was asked, the Gimp 2.10 way:

  • There is a menu Edit > Paste as > New layer in place which appears to be the equivalent of Edit > Paste, Layer > To new layer, in other words, the paste operation creates a new layer directly and the pasted element is pasted over its source position.
  • There is no default shortcut for this but you can add one using Edit > Keyboard shortcuts, the function to assign being edit-paste-as-new-layer-in-place

enter image description here

0

I just found some references to a GIMP menu "Paste As New Layer In Place". This appears to be exactly what I want.. although it isn't on the Edit menu of my latest version of GIMP.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .