How would i create a second sidebar in Sublime text - sublimetext2

What I want is to have a second sidebar that will show me three lines of the text of the file, which will save me having to open it.
This is a feature that Evernote has:
The area pointing to "snippets" is the feature that i want. I would find it so helpful if Sublime had this.
I have searched and I am fairly sure this doesnt exist. So I am wanting to make it myself. So here are my questions;
Which file ultimately governs the existence of the existing sidebar?
Would this be a package or a plugin? (Im guessing package), and if it is a package, would it be default or user?
Is it actually possible to have a second sidebar (or similar), and if so how can i get it to sit to the right of the existing sidebar?
Any other advice on how to go about creating this would be much appreciated.
Thank you.

I'm not sure if creating another sidebar is possible nor have I seen any package to do so.
On the other hand, you can do alt+shift+2(set_layout) I don't know what the buttons are for OSX. You can find it in Default keymap settings. You can copy that to user keymap, edit the arguments values and bind it to whatever keys you want.
What it will do, is create another window in sublime where you can open other tab with data you wish to have in there.
Example:
You can also use alt+shift+number, to create more than 2 windows with up to 4. If you wish to do the windows in horizontal position, you can use number 8 and number 9.

Related

In TestCafe how to do I write text to the report?

I am using gherkin_testcafe with testcafe-reporter-cucumber-json - this has already been setup and being used.
I want to be able to write text (and be able to attach screenshots) to the report; which then gets processed by the multiple-cucumber-html-reporter.
When using wdio/cucumber etc I was able to use .attach("my text"); which would add the text to the step info. However, I just cant seem to find how to do that within testcafe.
Anyone with a solution?

PhpStorm combine multiple Predefined Live Template functions

I have a project where my files are in "lisp-case" (hyphen delimited) and I would like to use the filename as a variable in a live template, but it must be converted to CamelCase first.
I found out that you can set the expression fileNameWithoutExtension() under "Edit Template Variables" and there is also a function called camelCase() which should be able to turn my filenames into CamelCase. But I cannot figure out how to combine those two. I tried doing camelCase(fileNameWithoutExtension()) but that does not work, unfortunately.
Is it possible to achieve this some other way?
camelCase(fileNameWithoutExtension())
It's a correct syntax.
Is it possible to achieve this some other way?
Please ensure that Skip if defined checkbox is checked for this variable.
If I try to wrap fileNameWithoutExtension() inside camelCase() and press enter to save the entry the window is closed but the change is not saved
It's an IDE bug (https://youtrack.jetbrains.com/issue/IDEA-132965 -- supposed to be fixed in current 2017.1.x version).
In any case: either press Enter before leaving the field ... or click on OK button straight away (you may then reopen this window to do further changes).
Also, when editing the field it's rendered like a select box which is kind of weird. Maybe it's a bug in this specific version. I'm on PhpStorm 10.0.4 for Mac.
Not a Mac user here .. but it is an editable drop-down box indeed (it lists all possible functions).

Why is my website going blank everytime I edit a row in Wp_options?

I have a wordpress theme and I am trying to change a bit of text that I can only really find in the database. It's a bit of title text that I can only find in the wp_options database.
I found the bit of text I need to change in wp_options, in a row under "of_options"
...";s:16:"translation_port";s:16:"Recent portfolio";s:23:"translation_relatedpost";
s:7:"Related"; s:27:"translation_advertise_title";s:28:"Our Nights";
s:20:"translation_morelink";s:9:"Read more";s:24:"port_project_description";s:20:
That above code does not have any breaks in it, I only changed it for ease of reading.
Just ran another test, and I dont actually have to change a single bit of text, purely opening the row for edit, then saving it without touching anything messes it up.
No logos, images, layout or anything shows. Only the background image :/
I have no idea, tried everything.
Any help would be appreciated.
Don't try to edit this field in the database.
What you see here is a serialized array.
'of_options' refers to 'Options Framework' and is an array containing all chosen options.
Look under Appearance for an options links. The values will be editable there. If somewhere else you need to add more info to your question for help to be provided.
Never fully read it.
Was a part in the theme edit menu to change the titles under a translation tab. My bad.

File import with interface similar to Windows Explorer in Access 2007

I would like the user to import the files into my Access VBA, I wonder if I can make the interface to be a bit like Windows Explorer:
With the window split into 2 halves, user can highlight the directory on the left half, and then the right half will show the files inside (even better if it can filter the file with specific extension), the use can select the files by clicking the checker box.
Is it possible in Access 2007 VBA, I don't want to reinvent the wheel again.
Thanks.
Have a look at
How to: Display and Use the File Dialog Box
Nothing built in as far as I know so that leaves rolling you own. If it was me doing it I would be doing something like this
Treeview control on the left
Listview control on the right
Two buttons in the middle one to add one to remove
The Treeview would be populated with the file structure of the machine (links at the end on how to do this)
When the user clicks on the add button it adds the full path and the file name to the listview in separate columns.
A bit of a pain but not that hard once you break it down
Link to how to get file info in VBA
http://www.everythingaccess.com/tutorials.asp?ID=List-files-recursively

Access 97 - how to edit/explore existing toolbar?

My current job is updating an existing Access97-Project. I haven't worked with Access in a long time and i can't find out, how i can explore a toolbar called "sbmbDrucken" which is obviously user-created. I just need access to the action or the code which is called by the buttons...
Is there any menu entry i missed or do i need special code for self-inspection?
TIA!
There are three different ways for menus/toolbars to be instantiated:
the old way, using macros. Before A95, this was the only way, so a lot of older apps (i.e., those converted from earlier versions) may still use macros for the menus.
defining them by hand, using the CUSTOMIZE function that you get when you right click on a toolbar in Access.
in code, using the Application.Commandbar object.
For the first you can browse your macros and see if any of them are menu macros.
For the last, you can do a search in the code for CommandBar.
For the second, just look at them through the built-in menu customization tools. Keep in mind that you may have to check them off to get them to be visible, and that the list is in no rational order. Likewise, some menus/toolbars are hidden from the customization interface. Also, you might need to look at the CUSTOM toolbar menu item.
I don't have Access 97 on hand but you may take a look of this webpage: http://www.alvechurchdata.co.uk/hints-and-tips/accaddtoolbar.html
It seems that "user-created" toolbars could be defined by handwritten code at form.load or somewhere similar. You may search CommandBars.Add and see if you can find those relevant code segments.
Hope that helps.
In the design mode, you will be able to see the toolbar & actions assigned to each of the button.
Right click on the specific toolbar
Click on Customize...
Right click on the button you would like to edit the action of.
You will be able to see the action (which could either be macro or code).
Let me know, if that doesn't help at all.