I use okular on Linux Mint.
Unfortunately the review bar which contains the annotation tools has to be manually loaded up each time okular is opened.
This is outrageously annoying if you open many hundred documents a day you need to highlight!
I neither found any option to show the review bar by default in the program's settings or via web search. I did not even found a shortcut that could be bound to a mouse key for easier opening. (The standard F6 shortcut does not do the trick for me.)
Is there any solution you can recommend?
Based on the information available on the official KDE Okular Handbook (currently at version 0.26) there is no functionality associated with this feature, so it technically can't be done by default from inside Okular.
To access the "Review" function (which includes highlighters, etc) you should press F6 or choose the Review option from the tools menu. At the moment all you can do in regards to tool configuration is change the available components of the review tool, adding or removing highlighter/marker tools. You can also configure shortcuts for the Review function, assigning an additional/alternate shortcut to open the review tool panel (Relevant to those with multimedia keys associated with their F-keys).
If the lack of this feature bugs you, you can always post a feature request to the KDE Bug Traker; Remember to search for existing requests before posting to avoid duplicates.
Related
I am looking for a way to right click selected text and open it in my app. Eg. via OS X's third party share menu. But I can not find any references at Apple's.
Have a look at the apple docs SysServices for creating a service for you app.
The Docs take you through an example of how to set one up.
Once done you will need to go into System Preferences and Enable the service. Your users will also need to do that.
Here is a quick project that shows an adaption of the apple code.
Update:
Although I think the services work good enough. Creating a Share or Action Extension is possible.
This example uses the same Project as above. But I have added an App Action extension (Target) to it.
The template for the Action is not too hard to understand and it took me 5 minutes to do this quick example.
(So I am not saying everything is as it should be but it works)
For the Action Extension:
Follow the instructions here
Which basically is:
After you choose the extension point that makes sense for your app
extension, add a new target to your containing app. The easiest way to
add an app extension target is to use an Xcode template that provides
a target preconfigured for your extension point.
To add a new target to your Xcode app project, choose File > New >
Target. In the sidebar on the left side of the new target dialog,
choose Application Extension for iOS or OS X. In the pane on the right
side of the dialog, Xcode displays the templates you can choose
Do read the above docs to understand better of what you need to do.
Once you have added the Extension. You can actually run it straight away.
Xcode provides you an option to choose a test app to test it in i.e TextEdit.app and takes you through the whole process of temporarily enabling the Extension.
In this example, remember I chose an Action Extension which suited the App.
The App's function in life is to do a basic encryption of selected text and then display the result.
The App's Action Extension will do the same but instead of displaying it, it will replace the selected text with the encryption text.
All that was needed for me to do, was copy the encryption method from the main app, over to the Extension.
I did have to adjust a couple of things though. Namely the original code deals with a NSString, where as the Extension deals with a NSAttributedString.
The conversion I did works but styling attributes are lost. For this example that does not really matter.
An Action Extension does not use the Share contextual menu. It uses an Action menu.
To see the menu, select some text and the hover the cursor over the selected text. You then should see a discloser button on the left of the text.
Like this:
Click it and choose the Extension.
If you do not see it, go to the 'more' option. This will take you to the system preferences where you can grant access to the extension.
The documentation is mainly concerned about distributing the extension and App via the App store.
But you can code sign your App and extension and do a normal archive export.
From there, all should work ok with gatekeeper.
But again refer to the Docs for a fuller understanding.
Here is a link for the code signed app and also the new Project.
Encrypto2
One of the features I love in Visual Studio is that it notes, with color-coded bars in the left margin, which lines I've changed in the program I'm editing.
Is it possible to get something similar in IntelliJ IDEA?
I'm aware that it has a "change markers" feature for files that are under version control, but that's not applicable for me. I've also seen this question which seems to imply that it should be possible, although that guy had the opposite problem.
The gutter marks that you are asking about only appear when you are using a VCS with the project.
IDEA will track local history, but does not show the changes in the gutter (most likely because this local history is temporary and is overwritten when the cache is invalidated or when an upgrade is done).
To view the completely history, right click on the file in the Project view, and under Local History select Show History:
The above image is taken from the online documentation, where it describes the Local History feature:
This section describes how to use Local History, which is your
personal real-time version control system. Local History is
independent of external version control systems and works with the
directories of your project even when they are not under any VCS
control.
If you want local history changes to be shown in the gutter, you can raise this as a feature request at the bug tracker.
This may be a simple question, but I'm not even sure of the search terms to find the answer.
I have two winforms applications which have been derived from the same code. One supersedes the other, but occasionally we have to us the older VB app for legacy information.
The problem is, if one app is already open, when the icon of the other app is clicked, nothing happens. The currently open app's window becomes selected like it has just been opened. Nothing else.
What I would like to happen is that both apps can open at the same time. They reference different DB's so there's not clash there.
I thought it might be something to do with the name spaces, so I changed those, but to no avail.
Any thoughts, I'm sure its a simple answer.
Mark
Look at Project Settings (Double Click on "My Project" in the Project Explorer).
In the Application-Tab you'll find the setting "Create Single Instance Application"
(I'm translating from German Version, may be slighlty different).
Better Alternative:
Basicly it is useful to keep this setting as it is and go for the alternative:
In that same spot, you find a button "Assembly Information". Click on that and change the first number of the "Assembly Version". Now the older and newer versions are two different programs for Windows and will run parallel.
Go to, 'project properties', Tab 'Application', section 'Windows application framework properties'. There is a checkbox called 'Make single instance application'. Maybe that's on...
I had the same problem with two applications. They had different assembly versions and I wanted to avoid unchecking "Make single instance application", so I kept looking until I found that they had the same GUID. Just changed one of them and problem solved. You can change the GUID in the Assembly Information dialog. Hope it helps.
I have a noob Perforce question. I got my perforce plug-in on Eclipse working(for both Java and C).
I have no problems "opening" my perforce stored projects on Eclipse.
Scenario 1:
Whenever I want to change code, I open the project on Eclipse and right-click on it and go to "team" and check out, make changes and then submit. Works fine. But even after that I see a tick mark(indicating check-out) on my perforce screen.
Scenario 2:
I just open perforce code as Eclipse project and make changes(If read only, it prompts and asks if i have to allow write and I say yes). I make changes and save. It doesnt ask for submit. Also if I now open the code on Perforce screen, I already see the new changes made.
Scenario 3:
Just on a Perforce screen, if I check a file out and don't make any changes, I obviously dont want to submit as there are no changes. In this case, how can i "disable" check-out so that my fellow programmers dont think i'm working on it??
Scenario3:
So here are 2 ways i consider a good usage of the plugin:
Use Revert Unchanged Files:
Before you begin development of a feature, checkout the entire tree/branch that your changes will be concentrated around in future. You can do this by right-click the relevant package in package explorer. Once you want to submit, Project->Right-click->Team->Revert Unchanged Files. Now, you can submit your changelist.
This approach stands very useful if you know you will be editing a lot of files or replacing files.
Ofcourse, others can see that you have checked out the files.
Enable Auto checkout:
Incase you are going to make few changes, you should enable autocheckout. This will checkout the file when you begin to make edits. Eclipse->Preferences->Team->Perforce->Enable support for workbench edit..
detailed explainations here. Its a good idea to have this enabled always as it checks out on demand.
However, this does not monitor the filesystem so and code/libs you replace outside of eclipse are not checked out.
For Scenario 3, you can change a workspace option to prevent submitting unchanged files:
SubmitOptions: reverttunchanged
If you have a file checked out (open for edit), others will be able to see that. I guess I'm not clear on why you check a file out if you don't intend to modify it?
If you are going to setup this way and are also using the desktop client, I recommend the following steps in the desktop client:
1.) Open your desktop Perforce client
2.) Click “Connection” on the global menu
3.) Select “Edit Current Workspace…”
4.) Under the “Advanced” tab select “allwrite”
5.) Click Apply, then OK
Much of my work involves a web-based CMS I cannot modify. That means lots of textareas, and none of the IDE features I love, such as tab functionality, syntax highlighting, etc.
Are there any browser modifications, or bookmarklets, or anything that would allow a client side inline override of textareas, allowing IDE like features (even as basic as simply allowing use of the tab key instead of alt+009) in a webpage's textarea field?
Yes there are. For example: Web Wiz Rich Text Editor, the first one I found when Googling "browser text editor". :) It appears to be free to use, with paid premium versions.
I'm sure there are others!