Aptana 3 > key bindings > move 1 character left or right missing? - aptana

I was trying to bind the following commands to keys:
Move right one character
Move left one character
Select next character
Select previous character
But I can't find those anywhere under Preferences > Keys.
Is it possible to bind those commands somehow?
It would be really nice to not have to switch to the cursor keys for moving around.
Thx for your help in advance.
Hubisan

Related

How do I advance to the next occurrence of a variable in R Studio IDE

When I highlight any string of text in the R Studio console a rectangle is drawn around all other occurrences of this same string of text. How do I advance to the next occurrence of this arbitrary string of text? I'd like the keyboard shortcut.
CTRL-F3 is the closest shortcut I know. This takes the selected string of text, drops it into the Find dialog and jumps to the next occurrence (keep pressing CTRL-F3 to cycle through)
If you would like to move to the next occurrence of a word/variable and select it while also keeping the original selected, this command exists but does not have a default shortcut assigned to it.
The command is called 'Find and add next' (or 'Quick Add Next' in older versions). You can assign a shortcut to it by going into Preferences -> Code -> Modify_Keyboard_Shortcuts. I use Alt+Cmd+Right (on a Mac) as that is an unassigned key binding.
You can see bellow I have used the command twice to select three of the four instances.
On a Mac, I use command+f to call Find with a selected string and then use control+g to move onto the next match.
This needs to be over 30 characters, but only needs 2:
F3

How to customize the look of currently selected(highlighted) completion in zsh?

Main question
I would like to add powerline characters at the start and at the end of the selected completion, like this:
Started the completion menu by inserting c and pressing the TAB key.
Moved right in the completion menu by pressing the right arrow key.
Moved down in the completion menu by pressing the down arrow key.
Is there any way to make zsh look/behave like in the pictures?
Note
Added powerline triangle + blank character at the beginning and blank character + powerline triangle at the end should somehow be accounted when columns are created to keep the alignment correct.
Bonus
Add 2 blanks at the beginning of every completion in the list, so that when the completion is selected it doesn't look like the text was moved to the right.
( This issue can be seen by comparing the completion with and without the selection. )
Alternative question
In case that previously explained behavior is impossible to get without changing the zsh source code, is it at least possible to add powerline triangle only at the end of the selected completion?
My unsuccessful attempts
I have tried using the lc, rc, and ec variables in the list-colors style but that didn't help:
Completion list was badly aligned and it created all kinds of visual problems.
Symbols were inserted in all elements of the completion list, not just the selected one.
I have also tried using the ma variable, but I couldn't properly insert a character at the beginning:
The variable expects only a number that represents a color and it is probably wrapped in some escape sequences, so the output did not look as expected.
This works for me.
zstyle ":completion:*:default" list-colors ${(s.:.)LS_COLORS} "ma=48;5;153;1"
Uses my LS_COLORS and then ma sets the background of my selection to bold and color 153 from https://jonasjacek.github.io/colors/.
Found from https://www.zsh.org/mla/users/2010/msg00811.html

Is there a way to default to "Replace in all cells" in the "Find and Replace" in jupyter?

I usually want to find and replace all, but it looks like it has been set to current/highlighted cell only (https://github.com/jupyter/notebook/pull/2131). jupyter also doesn't remember the option after the dialog goes away. Is there a way to change this behavior? Thanks.
Select all the cells where you want to perform Find/Replace
Shift + Arrow key Down or Up
and then,
Menu: Edit -> Find and Replace
Press ctrl+shift+F.
Then type "find and replace".
In order to rename a variable in all cells, click on the arrow as shown in the image
Steps
1.Go to edit -> Find and Replace -> click on it
See the highlighted option. Use this to replace in complete notebook.
I just had to do it urgently so shut down the notebook kernel did it from the terminal with sed like this:
sed -i "" 's/oldword/newword/g' mynotebook.ipynb
That was on a mac which am using at the moment, but if you do it on ordinary linux the "" should be left out ie
sed -i 's/oldword/newword/g' mynotebook.ipynb
First time I ever needed to do such a thing in years but if it happened more often would be good if it could be done from the browser.
First select all the cells (Esc->Ctrl+Shift+arrow_down_key).
Then Edit-> Find and Replace.
If only in one cell, then use the shortcut 'F' key.
Just do ctr+a outside the cell thats all:-
It will select all the cells and perform find and replace

How to make backspace work in lc3 assembly

My code is,
LOOP TRAP x20 ;get c
TRAP x21 ;out
BRnzp LOOP
It will output any letter to the consoles, it will return carriage, tab, but it won't backspace, and the delete button doesn't even show up in a register. Backspace will just show some character, looks like []. Delete shows nothing.
I tried another version without inputs where I used the delete ascii value and the start of text ascii value to move the cursor and delete but it doesn't seem to do anything. Is this a bug or am I doing something wrong?
Is there another way to clear the console out? I could work around it if I spam a bunch of new lines until it's off screen but I would rather it work normally. Any ideas?
Putting out a backspace character won't do anything to the characters already outputted, because they're already there.
The best way to achieve this is usually by setting your console to VT100-compatible (often set by default) and using VT100 escape codes to move around the screen.

Aptana: find and replace tabs (with spaces)

I am belatedly setting up Aptana to use four spaces instead of tabs. I've made the necessary changes to the preferences so every new tab inserts four spaces.
All the existing tabs remain, however, and so I get Mixed spaces and tab errors. How can you do a Replace all to fix this? I've tried ^t, <TAB> etc but it just searches for these as normal strings. What are the correct ways to specify a space and a tab?
I've found myself in similar situation and copying whole source code and repasting it helped me out. Just do as follow on your source code Ctrl+A, Ctrl+C, then Del whole code and Ctrl+V it again. You will get only spaces if have set it in options like you mentioned above.
There's an option in the refactor source menu to convert between tabs and space-tabs.
This worked for me: Edit > Find/Replace... (CTRL+F), check Regular Expressions, type \t and type 4 spaces (I use 4 spaces for tab).

Resources