I have setopt globdots in my .zshrc. Since I added that line zsh autocompletes with ../ and ./. Whenever I want to select the first file in autocomplete I need to tab two extra tabs. How can I remove these two auto complete suggestions?
Related
See below for a screenshot of my brackets editor in a css file.
I see the colored highlighting for all file types. I am not sure what to call it.
I have been downloading extensions lately so it could be one of them but not sure what its called and thus can't search online for how to disable it.
Those colored marks are the "gutter marks" from the Brackets Git extension. They indicate added (green), modified (yellow/orange), or deleted (red) lines in the current file.
Personally, I find them very helpful. In case you still want to turn them off, go to the Git Settings and check the box for "Use Git gutter marks".
I came from vim. Its biggest win is commands like ci< when <this text is removed if cursor is placed inside angle brackets>
How can I do that in hackable editor for the XXI century?
You can do this using the vim-mode-plus plugin. It natively supports your example, and many other text-object style commands taken straight from Vim, e.g. all of these would work as well:
di<
da<
ca<
And it should work with ', ", (, and other delimiters, just like Vim.
There is a function that comes with the editor named bracket-matcher:select-inside-brackets that highlight everything inside the bracket (but not the bracket itself). You may then press backspace or delete button to remove the content, or any other button to replace the content. For windows, the default key combination is ctrl-alt-m.
If you are not using windows, or you may have accidentally overwritten the settings, you may open Setting > Keybindings and search bracket-matcher:select-inside-brackets. It should tell you what is the correct key combination.
I'm interested in switching to the Atom text editor, but one thing that's keeping me with Vim is vim-notes, a plugin that automatically highlights names of your notes and allows you to jump to them by positioning your cursor over them and pressing gf (go to file under cursor). Is there a way to make Atom:
Read all the filenames in my ~/Notes directory
Highlight or underline any text in any .note file that's the name of a file in the ~/Notes directory, even if that note title has spaces.
Allow me to jump to the highlighted note by pressing some kind of key combination while the cursor is over it
I don't think there's a plugin for this, but if it's possible, I might be able to make one.
When you launch an editor, it replaces the space used by the terminal, and display the first line of your file on top, possibly followed by empty space if your file is a one liner.
Is there an editor which keeps the terminal display, and only renders the first line, and of course let you navigate downward to the place you want to edit, only moving replacing in the viewport one line at a time ?
I put the following to my .zshrc
if [[ $STY = '' ]] then screen -xR; fi
I get Bash when I start terminal now, although I have /bin/zsh at Terminal > Settings in Mac.
Which variable do I need to change to make Zsh my login shell in Screen?
A fast way to change your shell, for example to Zsh, is to run the following code
chsh -s /bin/zsh
Open your System Preferences.
Click on Accounts.
Click on the lock icon that says "Click the lock to make changes".
Control-click or right click on your account name in the list of accounts on the left.
Choose the Advanced Options... menu item.
Change your login shell to /bin/zsh.
Close and reopen any shells in Terminal.app.
If environment and other things aren't working, then you can simply give it as an argument to screen: screen -xR zsh and screen will run zsh instead of something else (bash).
SHELL=/bin/zsh screen
should work, i. e. set the environment variabe $SHELL