Disable scroll effect when navigating to a new location in a file? - goland

I just started using GoLand. (I have the vim emulation installed, in case that matters.) When I navigate to a new location in a file using search, going to a specific line, etc., I would like for the editor to just redraw the screen instead of appearing to scroll there. Is there some way to control that? Scrolling would be OK when only moving a short distance. I'm running GoLand 2022.3.2 on a mac running macOS 13.2.

Related

how to print something in a new window in jupyter notebook?

I have seen that in some IDEs, when you print something , a new window opens up.
my question is that is it possible to have the same thing for jupyter notebook ?
P.s:
It would be better if it was customizable; like being able to change the background color of the new window.
You'd want the newer generation of Jupyter interface, JupyterLab. (At least if you want this soon. I don't know what will be possible as Jupyter notebook 7 starts using more of the underlying machinery that JupyterLab uses.)
Default JupyterLab
Using default current JupyterLab, you can make a separate window for any output that you can drag around and arrange how you want. Right-click on an output cell and select from the menu 'Create New View for Output'. That will open a new window that respects the current JupyterLab theme. (There's a lot of theme adapting abilities so maybe that can provide what you need as far as background.) Once the new window is generated you can click and drag it around the JupyterLab window to arrange it relative to the notebook and then release when you have it outlined the way you want. You can try it right in your browser by clicking this link and letting the session spin up.
(This ability was covered in an answer to a similar question 'How to display Jupyterlab output in new tab?'.)
Similarly, you can have a window that keeps updating with the most recent output by using an attached console and toggling on 'Show All Kernel Activity'. When you have a notebook open, either right-click and select 'New Console for Notebook' or go under the main 'File' menu and select 'New Console for Notebook'. This will open a console and you can then right-click on the console pane and toggle on 'Show All Kernel Activity'. As you run things in the notebook, the output will show at the bottom of this window as well. Even rich output like plots and dataframe displays. You can click on the tab and drag to arrange this window as you wish in the main JupyterLAb pane. See some example images using this here and here.
Related:
It's not a separate window; however, a nice feature of JupyterLab is switching to 'View' to 'Render Side-by-Side' where the output goes to the side of the code cell and not below. Alternatively, you can modify the output cell in some ways like you could do in the classic notebook interface, see here.
Sidecar extension of JupyterLab
There's an extension called sidecar for Jupyterlab that I believe has more options. I wonder if you could combine widgets to control the background as you seek. Don't know about the layering possibilities there.
ipylab extension of JupyterLab
ipylab has even more abilities than sidecar for customization, with 'SplitPanel' and 'DockPanel'. Scroll through the examples shown to get an idea of the possibilities. There's also a 'launch binder' badge so you can try it out.
(You may also want to see Related projects listed at the bottom of ipylab's github page.)

JavaFX - How to run desktop app in the background using window close/minimize button and 'reopen or completely close' from hidden icons

I created a simple clipboard(desktop app) using JavaFX. Now I want to run the clipboard in the background when user minimizes or closes the app. For example, 'XAMPP' or 'μtorrent'. Of course, user can reopen or completely close the clipboard from hidden icons(in windows) or from the top panel(in ubuntu). From THIS question, i found
Platform.setImplicitExit(false);
which runs the clipboard in the background. But i want to show it in the hidden icons(in windows) so that i can reopen or completely close it from there.
I know how to get and modify the window OnCloseRequest. I just want to know what i should do to run the clipboard in the background.
I searched in the google and StackOverflow for any related tutorial or blog post but found nothing. Any suggestion will be highly appreciated.
I didn't share my code because my clipboard app has no problem. I just want to add the above-mentioned feature.

How to view Atom's console in a separate window?

I am running Atom (version 1.25.1 x64) on Mac.
Atom's Console, by default, appears at the bottom of the window that the editor occupies.
Is it possible to "pop out" the Console, so that it has its own dedicated, discrete window?
I ultimately want to move this Console window to an adjacent display, as the bottom panel is simply too narrow for me to work efficiently in certain instances.
Having a "popped-out" console window in Atom is no different than just opening up the Terminal app on a Mac and running your app or commands there, side-by-side with your Atom window. You'll literally have an entirely "dedicated" and separate console window.
But if you really want to do everything within Atom, try using the platformio-ide-terminal package.
Install platformio-ide-terminal
From your main Atom window, open a new window (shift + cmd + N)
On the new window, open a new terminal (i.e. click the + at the bottom panel)
Toggle the terminal panel to fullscreen (i.e. click the fullscreen/maximize button)
Which will give you something like this:
You can then move that "console window" to another adjacent display.
Still, as I said, it might be better to just use the Terminal app.

Atom will not let me change focus from the application itself nor from the original editor tab

I am not sure what started it, but now suddenly when trying to use Atom (on Ubuntu Linux), it opens fine, but keeps focus on the upper-left text of the open tab. For instance, if I try to click somewhere else in the file to move, the cursor, the cursor jumps back to the beginning of the file. If I click on another tab to look at a different file, it immediately jumps back to the original tab, upper left corner of the text. If I hit ctrl-f to search for something, focus jumps back to the text editor. If I try to switch to a different application like Chrome or the terminal window, Atom immediately comes back into focus.
Has anyone else run into this behavior or maybe knows what's going on?
I tried purging and re-installing but am still running into the same behavior.
I figured out that the behavior presents itself any time I try to edit a .ts file, at which point it automatically opens a file "child.js" in the TypeScript plugin directory and begins to display this behavior. I updated the TypeScript plugin and that seemed to fix it. Maybe this can be of help to anyone else who runs into the issue. (Bug link: https://github.com/TypeStrong/atom-typescript/issues/1098)

Keep QDialog on top of everything, even fullscreen applications?

On a project I work on, using Python3 + PySide, I try to print a popup-message as some sort of notification.
This popup needs to be on top of everything, this includes fullscreen applications like games or browsers. And that's the point that does not work. It works fine for all windows on my Desktop, normal windows, maximized, but as soon as there is a fullscreen application or a borderless window ("pseudo fullscreen") the popup is created, but "behind" the fullscreen app.
I already use self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint) but this flag does get ignored by other fullscreen apps.
How do I fix this? Also without giving focus to the popup.
It is just there to present information, and it is not good when your window looses focus while playing a game.
My code can be found here: https://github.com/GosuSan/PyECM
additional Info:
- my project aims to be cross-platform, so I need a platform-independend solution
- I am running linux, without having a windows machine atm,
so I can't test stuff there.
If you need any more info, let me know!
Edit:
It seems that PySide.QtGui.QSystemTrayIcon.showMessage does what I want, it works on fullscreen as well as on borderless-windows. So I will try to either find out how those messages are displayed on top, or just use them, not sure for now.

Resources