Commit Graph

2002 Commits

Author SHA1 Message Date
alex-huff
0daab6ab43 resize-os-window: fix '--incremental' option of 'os-panel' action
This commit addresses a few issues with the implementation of
'--incremental':
    - Unspecified settings are reset to their default value, which
      defeats the purpose of the option.
    - It is assumed that the names of options in 'LayerCLIOptions' map
      one to one with the names of fields in 'LayerShellConfig' but this
      isn't true. For example: The 'margin_top' cli option sets the
      'requested_top_margin' layer shell config.
    - When some options are set to a certain value, they force other
      options to be some value. The current implementation doesn't
      account for this.
    - The documentation is contradictory.
2025-09-22 00:10:42 -05:00
Kovid Goyal
7b0caaa491 ... 2025-09-21 10:26:37 +05:30
Kovid Goyal
591473d9c1 Fix #8997 2025-09-21 10:25:00 +05:30
Kovid Goyal
508ca700d8 Fix #8998 2025-09-21 10:10:51 +05:30
Kovid Goyal
e7514c68ae Fix updating panel configuration on visibility toggle and via remote control not working
Fixes #8984
2025-09-20 05:15:50 +05:30
Kovid Goyal
f98d5fce16 Remove multiple copies of imaging package
Move to an exiffix fork that does not depend on disintegration/imaging
Now we have only one copy of kovidgoyal/imaging package.
2025-09-19 21:41:23 +05:30
Kovid Goyal
9393eeb442 Fix #8984 2025-09-19 12:50:00 +05:30
Kovid Goyal
0d2b44ce17 Make go vet happy 2025-09-08 10:08:37 +05:30
Kovid Goyal
ecf7f0cab0 kitten diff: Fix incorrect rendering if diff completes before terminal responds to capabilities query 2025-09-02 11:29:55 +05:30
Kovid Goyal
7ff25fd77c Add an extra linenum-action so that the callback can use remote control without needing to turn it on globally 2025-08-29 17:13:56 +05:30
TomJGooding
bec29467c1 fix(show_key): fix typo in python exit message 2025-08-27 21:07:21 +01:00
Kovid Goyal
ba0cc0fa2c save_as_session: Implement saving of foreground process for remote shells run via ssh kitten 2025-08-22 21:14:33 +05:30
Kovid Goyal
1a25ca1545 Fix setting env vars in kssh cmdline that has no kitten directives 2025-08-22 20:56:41 +05:30
Kovid Goyal
e156a33543 Fix completion for paths starting with / 2025-08-16 06:43:41 +05:30
Kovid Goyal
23d8648f5d Add a new "file" mode to the ask kitten 2025-08-15 21:18:25 +05:30
Kovid Goyal
1544cab96f Fix #8901 2025-08-14 19:33:43 +05:30
Kovid Goyal
08f9c0c100 ... 2025-08-14 18:58:53 +05:30
Kovid Goyal
7ae0e8da62 ... 2025-08-12 20:50:09 +05:30
Kovid Goyal
be63598355 desktop-ui: Add config to control file chooser popup size
Fixes #8894
2025-08-12 20:47:26 +05:30
Kovid Goyal
c0c3a48b4a Cleanup previous PR 2025-08-04 20:31:31 +05:30
Nathan Monfils
dd7fa6b25a kitten desktop-ui: Do not create an empty *-portals.conf file
In the case where a portals.conf file does not exist in the user
configuration, there is nothing to patch; we should default to defining
the relevant portals for kitty.
2025-08-04 16:44:08 +02:00
Nathan Monfils
ff1c8ab917 kitten desktop-ui portal.go: Compat with XDG spec
1. Make sure we coalesce XDG_DATA_HOME as per the spec
  On my machine /etc/profile.d/flatpak.sh sets
  XDG_DATA_DIRS=$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
  but XDG_DATA_HOME is unset.

2. Update directory creation logic to find-or-create
   `enable_portal`'s current behavior is to first find a writable directory and
   write the portal definition to it, then fall back to creating a directory
   in the first available configuration directory.
   This is incorrect in the case where one of the locations in
   XDG_DATA_DIRS already has a directory, we should still prioritize
   XDG_DATA_HOME.
2025-08-04 16:41:58 +02:00
Kovid Goyal
0382463bcb Grab keyboard when running file chooser kitten via portal 2025-07-30 07:52:19 +05:30
Kovid Goyal
0f67ff37df Allow accepting the currently displayed parent directory by pressing ctrl+enter 2025-07-24 08:20:43 +05:30
Kovid Goyal
fd5876b94e Use SIMD to replace C0 control codes in Go code 2025-07-21 08:54:22 +05:30
Kovid Goyal
b980eb2726 Fix sort by dates initial application 2025-07-20 21:44:29 +05:30
Kovid Goyal
92988c19c0 ... 2025-07-20 19:30:26 +05:30
Kovid Goyal
bd0f55531f Implement previews for plain text files 2025-07-20 19:24:17 +05:30
Kovid Goyal
28fce006d6 Make highlight code fully re-useable 2025-07-20 15:37:03 +05:30
Kovid Goyal
2bdbbd909c Handle color scheme changes in choose-files kitten 2025-07-20 13:43:59 +05:30
Kovid Goyal
9068bbaba9 Make code to highlight file re-useable 2025-07-20 10:32:31 +05:30
Kovid Goyal
2e92d610d5 Implement metadata based previews in choose-files 2025-07-20 09:31:17 +05:30
Kovid Goyal
6347ea0210 Add a note to icat --clear that it doesnt work with terminal multiplexers
Fixes #8839
2025-07-20 08:26:39 +05:30
Kovid Goyal
fbe982e1aa choose files: Option to display title at top when OS titlebar is not available 2025-07-16 19:41:30 +05:30
Kovid Goyal
966f2cb700 Basic documentation for the choose files kitten 2025-07-16 13:15:27 +05:30
Kovid Goyal
c8a20dbe58 Start documenting the choose-files kitten 2025-07-16 06:16:38 +05:30
Kovid Goyal
9e7c46b253 clipboard kitten: Allow using a password to avoid repeated confirmation prompts when accessing the clipboard
Fixes #8789
2025-07-13 14:12:31 +05:30
Kovid Goyal
02f264af90 Fix #8815 2025-07-13 08:13:00 +05:30
phanium
3c54cb99d9 Fix kitten choose-files panic
Error: Panicked: runtime error: invalid memory address or nil pointer
dereference
Panicked with error: runtime error: invalid memory address or nil
pointer dereference
Stacktrace (most recent call first):
github.com/kovidgoyal/kitty/kittens/choose_files.(*FileSystemScanner).worker
        kitty/kittens/choose_files/scan.go:351
2025-07-12 22:32:08 +08:00
Kovid Goyal
80ce6946f7 Show a spinner while scanning/scoring is in progress 2025-07-12 08:34:15 +05:30
Kovid Goyal
fef57bd4c2 Format counts using user locale 2025-07-12 08:24:06 +05:30
Kovid Goyal
b01b73a8e5 Add --debug-input for panel and quick access terminals 2025-07-12 07:29:42 +05:30
Kovid Goyal
f34007c65a Handle multiple save files when entering save file names 2025-07-11 21:47:11 +05:30
Kovid Goyal
8ce7346616 mapping to switch to typing a save file name 2025-07-11 21:09:38 +05:30
Kovid Goyal
2bd8534df9 Implement completion for the save file entry prompt 2025-07-11 20:44:51 +05:30
Kovid Goyal
564195f94f Show results frame in cyan while scan in progress 2025-07-11 11:05:39 +05:30
Kovid Goyal
ecdeea930b Implement bindings to move current to first/last 2025-07-11 10:59:29 +05:30
Kovid Goyal
b4e75bf475 Limit the number of selections displayed in the footer 2025-07-11 10:40:43 +05:30
Kovid Goyal
513fd720eb Implement mouse interaction with result list 2025-07-11 10:36:20 +05:30
Kovid Goyal
6856df4391 DRYer 2025-07-11 07:32:02 +05:30