How do you close a workspace in GNOME? - gnome

Super+PageUp/Down to open
Shift+Super+PageUp/Down to move window to a different workspace
????????????????? to close a workspace
It's sad I have to even say this. Believe it or not I have already tried finding an answer to this question.
How do you close a workspace in GNOME(specifically, Ubuntu 18.04)?

Workspaces are automatically closed when you remove all the windows from it and switch to another one. I'm not entirely sure, but I think on Ubuntu 18.04 it might also keep one open at the bottom so you can drag windows into it.
Also see:
https://askubuntu.com/questions/1047051/remove-a-gnome-workspace

It seems that
Ctrl+Alt+left/right arrow can switch the workspace
Ctrl+Alt+Shift+left/right arrow can bring your current window to the target workspace(create a new one if not exists)
on Gnome Classic
In addition to that the size of workspace is configurable. Which also defines the behavior whether a workspace will be closed while no using.

Related

Notepad++ copy / paste no longer works

I can't find an answer to this anywhere on the web.
In Notepad++ the copy/paste functions do not work NOW! They did before (until now).
The keyboard shortcuts do not work, but here is part of the issue.
On the menu at the top the cut and paste items are grayed out (so do not function there either).
At the shortcut mapper there are no entries for cut and paste (supposed to be at the top but are not anywhere).
These functions work OK in Windows so it is not a Microsoft problem but a Notepad++ problem exclusively.
Tried the following:
Closed all files and the program.
Restarted the program and tried again.
Downloaded the latest version and installed it. Tried again.
Help
Not sure what the real problem is, so bare with me,
First I'd check your bindings are set.
Open Notepad++,
Select "Macro" drop down menu, and click "Modify Shortcut/Delete Macro..."
Navigate to the "Scintilla commands" tab,
Here you can use the filter at the bottom of the window to find specifics,
e.g, "Copy" or "paste" and set your key-bindings.
My Copy is "Ctrl+C or Ctrl+INS" and Paste is "Ctrl+V or Shift+INS" by default.
It's not uncommon for third-party applications/processes to block certain features, also check the directory you installed it to, as sometimes permissions may block features, too.
Hope this helps.
I don't know why this ticket is still open but this was first on my Google list.
My issue was that I had "Set Read-Only" enabled on the "Edit" menu.

How can I programmatically save a Sublime Text 3 workspace (without a dialog box)?

I really want a way to switch programming contexts quickly without hunting for windows that I've left strewn about. What would be nice is a command line tool to let me switch between different patches that I might be working on, and automatically open the sublime text workspace that I had open the last time I was working on that patch. The issue is that in order for the tool to know about the workspaces associated with said patches, it either needs to be told about them explicitly, or it needs to be able to tell sublime to save the current workspace with a specific file path.
Sublime does have a save_workspace_as command, but it opens a saveAs dialog, which is not what I want, and I can't seem to find any documentation that suggests that save_workspace_as can take an argument.
Any ideas?

"Registering" GVim in Windows XP

This is probably bordering off-topic-ness here, but not a lot of people on SuperUser use GVim, as opposed to here, so I'm leaving it here.
The problem is simple - I'm using GVim 7.3. from vim.org, downloaded it in the form of archived binaries (the two archive files) like always and replaced the older version. However, I can't get Windows to recognize it and to associate a file extension to it.
From windows explorer go to, let's say, .py file, Open with ... / Browse / gvim.exe in its directory and ... nothing. Like it never happened.
Does anyone have any idea what could be causing this behaviour? It's mighty annoying to have to open every file from within Vim manually.
I think the default installer ("self-installing executable") from vim.org lets you register shell associations; this means you get an entry "open with vim" in every context menu from the explorer. Did you not use this file?
I'm looking at this page and I'm thinking about this download.
This doesn't answer your question, but it's a different way to edit with gvim from the context menu.
Create a .reg file with the contents below (adjusting your path to gvim.exe) and execute it. Then whenever you right-click on a file in explorer you will have an "Open with GVIM" option.
REGEDIT4
[HKEY_CLASSES_ROOT\Unknown\shell]
#="Open with GVIM"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Open with &GVim]
#="Open with GVIM"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Open with &GVim\command]
#="C:\\Vim\\gvim.exe \"%1\""
I gave up trying all kinds of tricks through the registry, but this solution works for me just fine. I might add, I'm having the same issue on Windows 7. Since Windows seems to be able to do the association with vim.exe just fine, and this is apparently tied to the file name, I moved vim.exe off as say vim.ex$ and made a copy of gvim.exe to vim.exe. Cheap and easy way around this goofy problem, and I can't say I ever use vim.exe on purpose.

Setting the default location for opening windows in an Xvfb environment

This problem is driving me crazy. Maybe the experts at Stack Overflow can help.
I want to open an application in Xvfb and to have it always positioned at x,y=0,0 (Top left corner).
The application does not take any parameters, allowing it to reposition the opened window itself. Is there a way to set the default window position in a X-server? (Xvfb).
Best regards
Gustaf
I use Xvfb with twm (yum install twm). You need to create a ~/.twmrc file to indicate how windows are displayed.
I just use 'RandomPlacement' but in your case you might want to use 'UsePPosition' (check http://www.xfree86.org/4.4.0/twm.1.html) for more options.
Are you running a window manager? It's up to the window manager to place windows,
and it should default to (0,0) already when no window manager is running.
Is there a way to set the default window position in a X-server? (Xvfb).
It's open source, so yes, you could hack it in. But it's normally the window manager's job, so find a light-weight wm that allows window-placement rules. Some can pattern-match on window name to select rules.

Can't Copy & Paste in Eclipse 3.5

I recently updated my Eclipse to the latest release 3.5 and since then I have a very annoying problem with c&p using the shortcuts.
In an editor (xml, jsp, doesn't matter which one) I try to copy something and paste it somewhere else, nothing happens. When I cut out something and put it somewhere else I sometimes get something else (like a messed up part of my previous selection) or just some whitespaces. This gets even worse when I change lines in between.
First I thought that my keyboard is probably broken but it works just fine in other programs. Then I tried using the context menus' c&p and there it works. Yesterday I managed to get at least an error message when I tried to copy a file in the navigator from one project to another (the message was just "error using copy...bla". no details).
Does anyone else have this problem, or know how to solve it?
I am running on Kubuntu 9.04, and have quite some plugins installed (but only from the Galileo Updates Site), like Birt, Mylin, WST, or Subversive.
For my problem, I had to go to Window > Preferences > Java > Editor > Typing, and uncheck "Update imports"
This must be related to the key mapping, since those shortcuts are defined according to context.
(Column "When", in Preferences / General / Keys)
Check if those shortcuts do not work for any editor (do they work for Java editor?)
If they work for some editor, not for other, then some plugin settings must have re-affected them to another command.
This is caused by various X clipboard managers doing weird things with the clipboard. (bug report).
In XFCE the clipman applet was rolled in XFCE 4.8, and will be the source of these problems.
To fix this in XFCE - kill xfce4-settings-helper. You will need to use Settings Manager -> Session and Startup -> Session to kill it, as otherwise it may restart automatically.
To prevent this starting next time, you will need to remove it from your startup/login programs in Settings Manager > Session and Startup > Application Autostart.
Problem was solved with newer Eclipse releases. I think >= 3.6. Depending on your distribution there may be a (back)port of this (not on my Xubuntu 11.04) within the repositories.
So a tarball installation of Eclipse 4.0 works perfectly for me. Cut&Paste works and I am lucky that my plugins are compatible to 4.0.
Unfortunately Sublime Text has the same problems.
I read somewhere that in KDE maybe Klipper / "Klipper on the panel" conflicts with eclipse copy action.
It's a tool for clipboard history. Try to remove that! It may solve your problem :-/
For me the xfce4-settings-helper killing worked.
Workaround:
You can cut&paste from the compare view. So simply compare the un-copyable file (e.g., local history) with a different version and Control-C what you need there.
In the *.java editor page, right click and select open in text editor. Past your snippet there. Your Snippet will show in the *.java page'
I use Eclipse Kepler for PHP development. It's dumb I know.
None of the solutions suggested here has solved this source of frustration.
I can confirm the copy function works whether shortcut keys are bound or not. As I can copy from eclipse and paste into any other application. Except eclipse.
My solution. Accidental discovery: Eclipse Kepler will allow you to paste outside the php open and close tags and allow you to click and drag the highlighted block of content into into position.
Acceptable solution for small bits of code. Horribly crippling for larger development environments.
For Xming, this resolved the problem for me. In XLaunch uncheck Clipboard (clipboard manager) in the "Specify parameter settings" GUI form.

Resources