Sublime text remove multy cursor selection in windows - editor

Is there a way to remove selection when you use multy cursors. I mean when I use ctrl+d it expandes selection and ctrl+k, ctrl+d to skip selection works, but ctrl+u for removing selection is not working on windows. Is there another shortcut or some snippents to make it work?

It sounds like there is a plugin interfering with the CtrlU undo option. To find it, open the console with Ctrl` and enter the command
sublime.log_commands(True)
This shows what's going on behind the scenes when you press key combinations or use mouse buttons. Test it by making some multiple selections with CtrlD, and you should see
command: find_under_expand
in the console. Now, try to undo one of your selections by hitting CtrlU and see what comes up. If you see
command: soft_undo
then it's not another plugin issue, as that's what you'd expect to see. However, if (as I suspect) another plugin is interfering, you'll see something else there. If you do, hopefully you'll be able to trace it to the plugin it belongs to and disable it.
When you're done, enter
sublime.log_commands(False)
in the console to turn logging off, then close the console by hitting Esc or Ctrl`.

Related

How to bypass pasting restrictions into a textbox?

Pasting into a textbox has been disabled on said site.
Attempted to use browser extensions to block code but eventually any extensions detected in the browser would cause the site to error, forcing user to uninstall plugins.
Tried using software to allow fast typing of content from clipboard onto a textbox but it seems it's being picked up either as too rapid typing or as typing not coming from a physical keyboard. Results in a pop-up box that spams warning the user, preventing one from proceeding.
Any alternatives or leads? Much appreciated.

ITRS Geneos Log Monitoring

I want to setup log monitoring in such a way that only the latest updated lines in the logs are read.
I have actually configured a keyword search for log monitoring. The problem is once the keyword triggers an alert, the alert keeps repeating which implies that the logs are read from the start.
Please suggest.
You can do right click on the alert and say Accept file. Once you do that, the alert will go away and start from updated lines again.
You need to have a look to the advance tab. You will find there the option Trigger mode. I think you need to set the option Multiple.
The official documentation says:
MULTIPLE
In multiple trigger mode, FKM will show a new trigger row for each detected key. Detected keys for each file are then indexed by increasing number starting at 0. Later numbers indicate later detected keys.
Go to FKM Configuration in Basic tab scroll to the right and there is an option Rewind. Make sure this option is not enabled. If it is enabled during each change in configuration FKM will start read from the start of the file, not from EOF.

Selenium IDE simulate press ENTER for javascript configmation box

I am looking for allready for hours how to do this. So don't tell me to use search function. I know there are many things related.
There is many stuff on the internet and here, but no one works for me.
And I need a solution for Selenium IDE or something intergrated with it (if there is anything). Not RC and not WebDriver etc.
I need to simulate a key for an JavaScript confirmation popup, which has "OK" and "Cancel" buttons.
The problem is that I cannot select anything.
Popup appears when the site is opened. The Website itself is visible in the background, but no element can be selected (Firebug shows nothing as well, empty html(?)).
If I press ENTER key the confirmation box disappear (so it works fine manually).
This example seems good, but I can't find any interface in Selenium IDE to do this:
driver.switchTo().alert().accept();
(from Click in OK button inside an Alert (Selenium IDE))
I have only the following pattern:
Or write the test in html, which uses the "Command", "Target", "Value" pattern.
Appreciate any help.
EDIT1:
With the link provided by Janesh Kodikara
I have found that my problem is:
Selenium IDE will not be able to handle alerts that are within the page's onload() function. It will only be able to handle alerts that are generated after the page has completely loaded.
There is no "onload" function in my website, but the script part which creates the alert is inside html which is called with page (not in any function). This must be the same as "onload", because the alert comes immediately when the website is opened.
Once you have a confirmation box, you must consume it (Click OK or Cancel button)
You can use "chooseOkOnNextConfirmation" command to instruct Selenium IDE to simulate clicking OK button.
See http://www.guru99.com/enhancing-selenium-ide-script.html for more details.
You will not see the Javascript popup when IDE script is run.
Selenium IDE
Command : runScript
target : {window.onbeforeunload=function(e){};}
Command :click
target : xpath of button.
This will work fine but you are not able to see popup.

Elegant workaround for Safari print without print dialog bug?

The AppleScript standard suite has a command that will print from an application, allowing for the specifying of certain options and printing without displaying a dialog box. For example:
tell application "Safari"
print document 1 with properties {copies:3} without print dialog
end tell
However, there appears to be a bug in the current version of Safari that prevents this from happening like it's supposed to.1 When specifying without print dialog, a sheet pops up in the window that should display progress in processing the print job, but instead of doing so it just hangs with a nondescriptive barberpole.
In trying to work around this, I realize that if I specify with print dialog, everything works as it's supposed to. The script pauses execution on that line after displaying the dialog, and then continues after the user has hit the print button in the dialog. The most elegant workaround for this would be to keystroke return after the dialog is shown, but I don't think this is possible given that the script is paused on that line until the dialog is dismissed.
A much less elegant workaround is this:
on printCopiesOfCurrentPage(copies)
tell application "System Events"
tell application process "Safari"
keystroke "p" using command down
keystroke copies as text
keystroke return
delay 3
end tell
tell
end printCopiesOfCurrentPage
Since there's no way to delay execution until the print job is sent off, we have to guess with a delay 3, which is either going to be inefficient or problematic.
Any other possibilities here? Maybe a way to watch for the print dialog disappearing after using the keystroke method, or a way to kick off the job after print with dialog is invoked?
1. The first time I tried this, it actually printed one and a half pages before kind of flipping out and causing a printer jam, of all things. I haven't been able to replicate it since, so if someone could confirm this bug for me, it would be appreciated.

jVi Visual Block Select

I'm trying to do a block selection using jVi in Netbeans. I cannot seem to get it working - there seems to be a lot of good info on this topic, however I'm not seeing the answer to my problem.
This is what I understand: to do a block select, you first enter visual mode and select some text. Then you hit Ctrl-V to enter block select mode? For me, Ctrl-V pastes the clipboard, so I found someone mentioned Ctrl-Q. I try that, but I cannot get text to select in a column using the arrow keys or the h,j,k,l keys. For me, it just does a regular selection grabbing the rest of the line, and the line below (if I move the cursor down) up to the cursor.
What am I missing?
jVi has options to specify which control keys are handled by jVi and which passed on to NetBeans for processing. Your description indicates that Ctrl-V is being handled by NB (not by jVi). In NetBeans look at
Tools > Options > jViConfig > Ctrl-Key Bindings
and enable/check the keys that jVi should process.
Make sure you're not in a special more before you start (just press ESC a few times). It's also possible that some of your jVi startup scripts are remapping those keys.
Ctrl-V is the default, but Ctrl-Q was introduces on gvim on Windows, to avoid confusing users who knew Ctrl-v is for pasting text. You can look at your key mappings by typing
:map
in command-mode. You can even do
:verbose map
to find out where each mapping was defined. I think that only lists user-set mappings, so it'll show you when Ctrl-V and Ctrl-Q were re-defined by a script.
This worked for me - combining both suggestions from above. In jVi settings page, enable Ctrl-Q and use it for classic Ctrl-V functionality. Do not enable Ctrl-V as it has too many side effects wrt handling of mouse selection buffer. Works nicely in this way for me with netbean 8.2.

Resources