Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING
2020-03-15 13:27:40 +05:30
Kovid Goyal
ea48332f46
more typing work
2020-03-14 09:52:56 +05:30
Kovid Goyal
891b184195
misc typing fixes
2020-03-13 16:45:39 +05:30
Kovid Goyal
917559f883
more typing work
2020-03-13 16:13:26 +05:30
Kovid Goyal
5bdb405635
More typing work
2020-03-09 08:56:02 +05:30
Kovid Goyal
f0b29e15c3
The utils and constants modules are now fully typechecked
2020-03-04 10:26:41 +05:30
Kovid Goyal
c1abb7038d
Fix border/margin/padding sizes not being recalculated on DPI change
...
Fixes #2346
Fixes #2347
2020-02-09 08:31:09 +05:30
Kovid Goyal
3b36470e84
When resolving scrollback pager if it is not present in system PATH try using shell PATH
2020-02-03 08:03:35 +05:30
Kovid Goyal
c31a39a052
Action to convert between vertical and horizontal splits
2020-01-30 14:34:40 +05:30
Kovid Goyal
96f3253e6d
goto_tab now maps numbers larger than the last tab to the last tab
...
Fixes #2291
2020-01-16 20:17:17 +05:30
Kovid Goyal
8fbf552494
Allow opening new tabs/windows before the current tab/window as well as after it with the :option:launch --location option.
2020-01-15 08:02:05 +05:30
Kovid Goyal
9c3390c5e6
Allow specifying a marker when launching windows
2020-01-15 07:22:32 +05:30
Kovid Goyal
d68ae01448
Make the active window history available when doing kitty @ ls
...
Fixes #2194
2019-12-13 18:17:13 +05:30
Kovid Goyal
6aa82d82ad
Start work on a unified interface for launching processes
2019-11-13 09:58:28 +05:30
Kovid Goyal
86eed7f895
Speed up taking over of tab
2019-11-12 10:38:57 +05:30
Kovid Goyal
5dc14c5861
Copy cwd when taking over tab
2019-11-12 10:24:37 +05:30
Kovid Goyal
cab87f6fb2
Ensure Tab has cwd even with no initial window
2019-11-12 10:18:42 +05:30
Kovid Goyal
fb3acd1f4a
Add a detach_tab command
2019-11-12 10:07:44 +05:30
Kovid Goyal
a5aed0f4ab
Forgot to change tab_ref when attaching window
2019-11-09 11:23:04 +05:30
Kovid Goyal
14d693a8ff
When attaching window make its parent tab active
2019-11-09 11:09:29 +05:30
Kovid Goyal
20751c2807
Start work on a detach_window command
2019-11-09 09:20:38 +05:30
Kovid Goyal
bd1c1839dd
Add API to boss.py to move a window into a different tab
2019-11-08 16:18:52 +05:30
Kovid Goyal
d1aa59080f
Add an API to attach and detach windows from tabs
2019-11-08 14:22:02 +05:30
Kovid Goyal
472c6f6b8d
When running kittens, use the colorscheme of the current window rather than the configured colorscheme
...
Fixes #1906
2019-08-18 18:27:44 +05:30
Kovid Goyal
eb006a6688
Indicate if set_active_tab() worked or not
2019-07-14 10:02:33 +05:30
Kovid Goyal
0be6c9cb97
Allow passing a `!neighbor` argument to the new_window mapping to open a new window next to the active window
...
Fixes #1746
2019-06-29 15:13:54 +05:30
Kovid Goyal
603533e632
Fix a regression that caused closing an overlay window to focus the previously focused window rather than the underlying window
...
Fixes #1720
2019-06-17 09:00:47 +05:30
Luflosi
4eed8463b3
Simplify chained comparisions
2019-06-05 15:24:36 +02:00
Kovid Goyal
277f43aed6
Linux: Disable the Wayland backend on GNOME
...
GNOME has no support for server side decorations.
Can be controlled by new option linux_display_server.
2019-06-04 19:10:13 +05:30
Luflosi
2b095f720e
Use "with suppress()" to suppress python exceptions
...
Using
```Python
with suppress(OSError):
os.remove('somefile.tmp')
```
instead of
```Python
try:
os.remove('somefile.tmp')
except OSError:
pass
```
makes the code more compact and more readable IMO.
This pattern was recommended by Raymond Hettinger, a Python Core
Developer in his talk "Transforming Code into Beautiful, Idiomatic Python" at https://www.youtube.com/watch?v=OSGv2VnC0go . The transcript is available at https://github.com/JeffPaine/beautiful_idiomatic_python
2019-06-03 12:27:43 +02:00
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
c9644039b1
Merge branch 'add_option_to_not_switch_to_previous_when_closing_current_tab' of https://github.com/ddddavidmartin/kitty
2019-04-03 14:23:14 +05:30
David Martin
34de072a10
Add option to disable switching to the previous tab when closing the current one.
...
When setting tab_bar_switch_to_previous_when_closing_current_tab kitty
will now switch to the left tab instead of the previously active one
when the currently active tab is closed. This makes the closing of tabs
a bit more predictable.
Note that we are not touching the handling of the active_tab_history at
all. I was considering it, but we want to keep track of it in any case
to keep the 'switch to previous tab' shortcut working.
2019-04-03 19:27:04 +11:00
Kovid Goyal
971c28ce97
Fix tab title not always being updated when active window is closed
2019-03-21 20:44:55 +05:30
Kovid Goyal
56864cdfb7
When a window is closed, switch focus to the previously active window (if any) instead of picking the previous window in the layout
...
Fixes #1450
2019-03-09 10:42:55 +05:30
Kovid Goyal
e6d5eea7eb
Get rid of glfw_post_empty_event as it is not needed
2019-03-04 19:52:45 +05:30
Kovid Goyal
c385532b10
A new option :opt:tab_bar_min_tabs to control how many tabs must be present before the tab-bar is shown
...
Fixes #1382
2019-02-15 09:47:22 +05:30
Kovid Goyal
50a6abaac1
Also fix move_tab to preserve existing tab order
2019-01-04 06:59:38 +05:30
Kovid Goyal
4e7498b854
Fix using the `new_tab !neighbor` action changing the order of the non-neighboring tabs
...
Fixes #1256
2018-12-23 08:45:34 +05:30
Kovid Goyal
2367fad90b
Merge branch 'resize-window-cfg' of https://github.com/eepp/kitty
2018-12-19 11:05:31 +05:30
Philippe Proulx
d22686da10
Add resize_window configuration action
...
This patch adds the `resize_window` configuration action, which has the
following arguments:
1. Quality of resize amongst `wider`, `narrower`, `taller`, and
`shorter` (mandatory).
2. Increment in number of cells (optional, default: 1).
This makes it possible to configure keys as such:
map ctrl+shift+left resize_window narrower
map ctrl+shift+right resize_window wider
map ctrl+shift+up resize_window taller
map ctrl+shift+down resize_window shorter
and have a behaviour which is somewhat close to Terminator's.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2018-12-18 20:33:21 -05:00
Kovid Goyal
e113e0cba7
Allow hiding the tab bar completely, by setting :opt:tab_bar_style to `hidden`.
...
Fixes #1014
2018-10-25 10:05:43 +05:30
Kovid Goyal
62fe392041
Handle overlay windows when recording window history
2018-10-21 11:56:23 +05:30
Kovid Goyal
097d11819b
Add a new `nth_window action that can be used to go to the nth window and also previously active windows, using negative numbers. Similarly, goto_tab` now accepts negative numbers to go to previous windows
...
Fix #1040
2018-10-21 10:59:06 +05:30
Kovid Goyal
093c05e16a
When running kitty @ ls also output the current layout for each tab
2018-10-12 18:19:50 +05:30
Kovid Goyal
e4033d997c
Merge branch 'prev_' of https://github.com/Luflosi/kitty
2018-09-22 17:28:53 +05:30
Luflosi
bc38357193
Add prev_tab and prev_window as aliases for previous_tab and previous_window
2018-09-22 13:24:51 +02:00
Kovid Goyal
5fb02c0439
When mapping the new_tab action allow specifying that the tab should open next to the current tab instead of at the end of the tabs list
...
Fixes #979
2018-09-19 19:43:41 +05:30
Kovid Goyal
e39635ea16
Add a new `neighboring_window` function to switch to neighboring windows in the current layout, similar to window movement in vim
...
Fixes #916
2018-09-08 08:59:11 +05:30
Kovid Goyal
f0357b061e
Add a new `last_used_layout` function that can be mapped to a shortcut to switch to the previously used window layout
...
Fixes #870
2018-09-08 05:56:02 +05:30