Hot answers tagged

25

Ctrl+Page Down (forward) and Ctrl+Page Up (backward).


18

Try using alt+tab number for Linux with gnome.


14

the whitespace between the two is actually 5 spaces. No, it's not. Not in the output of echo or printf. $ echo -e 'foo\tbar' | od -c 0000000 f o o \t b a r \n 0000010 What is the correct way to force tab being printed as tab, so I can select the output and copy it to somewhere else, with tabs? This is a different issue. It's not about the ...


10

Well, not bash per se, but at the console, you can use either screen or tmux. There's a question over at superuser with a nice answer for configuring screen to have a tab-like status bar: How do I use tabs with the Linux “Screen” program?, and you can do a similar thing with tmux. Both programs can also split the terminal window into multiple independent ...


9

Like ilkkachu said, this isn't an issue with bash, but with the terminal emulator which converts tabs to spaces on output. Checking different terminals, putty, xterm, and konsole convert tabs to spaces, while urxvt and gnome-terminal do not. So, another solution is to switch terminals.


4

CITRIX isn't a Window Manager. It looks like Gnome2 is the default WM for RHEL 5.8 but I can't find anything that explicitly states that. Gnome2/Mate (Metacity/Marco): System -> Preferences -> Keyboard shortcuts Set the shortcut for Move between windows, using a popup window (default is Alt+Tab). It's possible you are using Compiz or another WM ...


4

In printf '%s\t%s\n' foo bar, printf does output foo<TAB>bar<LF>. f, o, b, a and r are single-width graphical characters. Upon receiving those characters, the terminal will display a corresponding glyph and move the cursor one column to the right, unless it's already reached the right edge of the screen (paper in original tele-typewriters)), in ...


3

I'm using: separate multiple windows with some version of switcher (alt-tab for me on Ubuntu). tmux for split windows, a handy tool! tabs (not your thing but I'm being inclusive for others) multiple file tabs in vim You get this by doing <esc> to go to command mode if necessary and then : tabe filename. You can then switch tabs with gt and gT (...


2

Based On details in The comments it seems that you are running from a windows machine using putty. Due to limitations with the putty connection, You would need x forwarding to use a native terminal to have multiple tabs (as your putty terminal each tab is a separate connection, controlled by windows rather than being a single point of access to the linux ...


2

I added the following to ~/.emacs: (setq-default indent-tabs-mode t) (setq backward-delete-char-untabify-method nil) (setq indent-tabs-mode t) (defun my-insert-tab-char () "Insert a tab char. (ASCII 9, \t)" (interactive) (insert "\t")) (global-set-key (kbd "TAB") 'my-insert-tab-char) ; same as Ctrl+i


2

You can control konsole using dbus scripting: You might use something like this: konsole&sleep 0.1 qdbus org.kde.konsole-$! /Windows/1 newSession konsole&sleep 0.1 qdbus org.kde.konsole-$! /Windows/1 newSession You can also run commands and set title: konsole&sleep 0.1 id=$(qdbus org.kde.konsole-$! /Windows/1 newSession) qdbus org.kde.konsole-...


2

I'm not familiar with that windows 10 feature, but it looks similar to window manager tabbing which had been around for quite a while. I first encountered it in fluxbox over 10 years ago, but plenty of other WMs have that feature. It basically allows you to drag and drop a window onto another and the window manager will tab them together. http://fluxbox-...


1

Found a solution here: https://blog.callstack.io/supercharge-your-terminal-with-zsh-8b369d689770 # Open new tabs in same directory if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then function chpwd { printf '\e]7;%s\a' "file://$HOSTNAME${PWD// /%20}" } chpwd fi Note that the only percent-encoding it does on the path is to replace spaces with "%20"....


1

Click the blue text: So you just need to add that little escape sequence to your prompt so that Terminal knows where you are. Easy! Or, if you think that's a little cryptic, let's take a look at how bash manages to pull it off. Checking man bash reveals that when bash is invoked as an interactive login shell (this should be the default when opening a ...


1

This table of Window Managers shows Linux Window Managers with tabbed windows include: xmonad, wmii, Window Maker, WMFS, PekWM, Ion, i3, FVWM, Fluxbox, and Compiz. Some Desktop Environments are locked in to a specific Window Manager (e.g., Cinnamon), but GNOME and KDE are not.


1

You can found the tabs configuration in Geany's manual, chapter Interface Notebook tab preferences. There is no built-in feature for multi-line tabs. For your plugin related question, there is no one as you expect in the official plugin page : plugins.geany.org


1

Nano can edit multiple files at the same time, but it doesn't have a visual element to switch between files. Use the keyboard shortcuts Alt+< and Alt+> to navigate between open files. Press Ctrl+G in nano to see the list of keyboard shortcuts. Rather than running an editor on the remote machine, which can be annoying especially if the connection ...


1

I think you are looking for :tabe +set\ nomodifiable|set\ ro filename Using + after tabe lets you specify a set of commands to run when opening the file. For more details, see :help +cmd If this is something you do often, you can set up a custom command to do this for you :command! -nargs=+ -complete=file Tabread tabe +set\ nomodifiable|set\ ro <args&...


1

For me, what works is: Alt + shift + tab number.


Only top voted, non community-wiki answers of a minimum length are eligible