Codebase list rust-bzip2-sys / 58b9574
alacritty: Register as an x-terminal-emulator provider James McCoy 1 year, 5 months ago
5 changed file(s) with 146 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 Name: x-terminal-emulator
1 Link: /usr/bin/x-terminal-emulator
2 Alternative: /usr/bin/alacritty
3 Dependents:
4 /usr/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /usr/share/man/man1/alacritty.1.gz
5 Priority: 20
22 * Package alacritty 0.11.0 from crates.io using debcargo 2.6.0
33 * Install icon file under the correct name (Alacritty.svg, not
44 alacritty-term.svg). (Closes: #1025826)
5 * Register as an x-terminal-emulator provider (Closes: #1025859)
6 + Backport patch from upstream to support -T switch
7 + Add Provides: x-terminal-emulator
8 + Add x-terminal-emulator alternative
59
6 -- James McCoy <jamessan@debian.org> Sat, 10 Dec 2022 11:41:06 -0500
10 -- James McCoy <jamessan@debian.org> Sun, 11 Dec 2022 12:51:23 -0500
711
812 rust-alacritty (0.11.0-2) unstable; urgency=medium
913
1111 rather than reimplementing their functionality, it manages to provide a
1212 flexible set of features with high performance.
1313 """
14 provides = ["x-terminal-emulator"]
0 From bbe256488cf65263ec46babf96f9cd8f33f93ea3 Mon Sep 17 00:00:00 2001
1 From: James McCoy <jamessan@jamessan.com>
2 Date: Sat, 10 Dec 2022 11:56:00 -0500
3 Subject: [PATCH] Add -T short form for --title
4
5 Debian-based distributions provide a standard interface to launch a
6 terminal via the x-terminal-emulator name. In order for a terminal
7 emualtor to satisfy that interface, it must
8
9 * Be VT100 compatiable
10 * Support the "-e <command> <args>" CLI option
11 * Support the "-T <title>" CLI option
12
13 Adjust the short form of --title accordingly, providing -t as an alias
14 to avoid breaking any existing usage.
15 ---
16 src/cli.rs | 2 +-
17 extra/alacritty.man | 2 +-
18 extra/completions/_alacritty | 4 ++--
19 extra/completions/alacritty.bash | 8 ++++----
20 extra/completions/alacritty.fish | 4 ++--
21 5 files changed, 10 insertions(+), 10 deletions(-)
22
23 diff --git a/src/cli.rs b/src/cli.rs
24 index d03d2f84a8..3870703660 100644
25 --- a/src/cli.rs
26 +++ b/src/cli.rs
27 @@ -238,7 +238,7 @@ impl From<TerminalOptions> for PtyConfig {
28 #[derive(Serialize, Deserialize, Args, Default, Debug, Clone, PartialEq, Eq)]
29 pub struct WindowIdentity {
30 /// Defines the window title [default: Alacritty].
31 - #[clap(short, long)]
32 + #[clap(short = 'T', short_alias('t'), long)]
33 pub title: Option<String>,
34
35 /// Defines window class/app_id on X11/Wayland [default: Alacritty].
36 diff --git a/extra/alacritty.man b/extra/alacritty.man
37 index 09503a9339..cbc8e2fb05 100644
38 --- a/extra/alacritty.man
39 +++ b/extra/alacritty.man
40 @@ -62,7 +62,7 @@ Override configuration file options [example: cursor.style=Beam]
41 \fB\-\-socket\fR <socket>
42 Path for IPC socket creation
43 .TP
44 -\fB\-t\fR, \fB\-\-title\fR <title>
45 +\fB\-T\fR, \fB\-\-title\fR <title>
46 Defines the window title [default: Alacritty]
47 .TP
48 \fB\-\-working\-directory\fR <working\-directory>
49 diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty
50 index 19eb9a0ecf..b9ae3518c1 100644
51 --- a/extra/completions/_alacritty
52 +++ b/extra/completions/_alacritty
53 @@ -23,7 +23,7 @@ _alacritty() {
54 '--working-directory=[Start the shell in the specified working directory]:WORKING_DIRECTORY:_files' \
55 '*-e+[Command and args to execute (must be last argument)]:COMMAND: ' \
56 '*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
57 -'-t+[Defines the window title \[default: Alacritty\]]:TITLE: ' \
58 +'-T+[Defines the window title \[default: Alacritty\]]:TITLE: ' \
59 '--title=[Defines the window title \[default: Alacritty\]]:TITLE: ' \
60 '--class=[Defines window class/app_id on X11/Wayland \[default: Alacritty\]]:instance> | <instance>,<general: ' \
61 '-h[Print help information]' \
62 @@ -65,7 +65,7 @@ _arguments "${_arguments_options[@]}" \
63 '--working-directory=[Start the shell in the specified working directory]:WORKING_DIRECTORY:_files' \
64 '*-e+[Command and args to execute (must be last argument)]:COMMAND: ' \
65 '*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
66 -'-t+[Defines the window title \[default: Alacritty\]]:TITLE: ' \
67 +'-T+[Defines the window title \[default: Alacritty\]]:TITLE: ' \
68 '--title=[Defines the window title \[default: Alacritty\]]:TITLE: ' \
69 '--class=[Defines window class/app_id on X11/Wayland \[default: Alacritty\]]:instance> | <instance>,<general: ' \
70 '--hold[Remain open after child process exit]' \
71 diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash
72 index 5cca646653..60025f5f6e 100644
73 --- a/extra/completions/alacritty.bash
74 +++ b/extra/completions/alacritty.bash
75 @@ -31,7 +31,7 @@ _alacritty() {
76
77 case "${cmd}" in
78 alacritty)
79 - opts="-h -V -q -v -o -e -t --help --version --print-events --ref-test --embed --config-file --socket --option --working-directory --hold --command --title --class msg help"
80 + opts="-h -V -q -v -o -e -T --help --version --print-events --ref-test --embed --config-file --socket --option --working-directory --hold --command --title --class msg help"
81 if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
82 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
83 return 0
84 @@ -73,7 +73,7 @@ _alacritty() {
85 COMPREPLY=($(compgen -f "${cur}"))
86 return 0
87 ;;
88 - -t)
89 + -T)
90 COMPREPLY=($(compgen -f "${cur}"))
91 return 0
92 ;;
93 @@ -147,7 +147,7 @@ _alacritty() {
94 return 0
95 ;;
96 alacritty__msg__create__window)
97 - opts="-e -t -h --working-directory --hold --command --title --class --help"
98 + opts="-e -T -h --working-directory --hold --command --title --class --help"
99 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
100 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
101 return 0
102 @@ -169,7 +169,7 @@ _alacritty() {
103 COMPREPLY=($(compgen -f "${cur}"))
104 return 0
105 ;;
106 - -t)
107 + -T)
108 COMPREPLY=($(compgen -f "${cur}"))
109 return 0
110 ;;
111 diff --git a/extra/completions/alacritty.fish b/extra/completions/alacritty.fish
112 index fdc24ab2e4..2ff7c1f1fa 100644
113 --- a/extra/completions/alacritty.fish
114 +++ b/extra/completions/alacritty.fish
115 @@ -4,7 +4,7 @@ complete -c alacritty -n "__fish_use_subcommand" -l socket -d 'Path for IPC sock
116 complete -c alacritty -n "__fish_use_subcommand" -s o -l option -d 'Override configuration file options [example: cursor.style=Beam]' -r
117 complete -c alacritty -n "__fish_use_subcommand" -l working-directory -d 'Start the shell in the specified working directory' -r -F
118 complete -c alacritty -n "__fish_use_subcommand" -s e -l command -d 'Command and args to execute (must be last argument)' -r
119 -complete -c alacritty -n "__fish_use_subcommand" -s t -l title -d 'Defines the window title [default: Alacritty]' -r
120 +complete -c alacritty -n "__fish_use_subcommand" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
121 complete -c alacritty -n "__fish_use_subcommand" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
122 complete -c alacritty -n "__fish_use_subcommand" -s h -l help -d 'Print help information'
123 complete -c alacritty -n "__fish_use_subcommand" -s V -l version -d 'Print version information'
124 @@ -22,7 +22,7 @@ complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_s
125 complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
126 complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -l working-directory -d 'Start the shell in the specified working directory' -r -F
127 complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s e -l command -d 'Command and args to execute (must be last argument)' -r
128 -complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s t -l title -d 'Defines the window title [default: Alacritty]' -r
129 +complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
130 complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
131 complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -l hold -d 'Remain open after child process exit'
132 complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s h -l help -d 'Print help information'
00 remove-non-linux-deps.patch
11 bump-notify-dep.patch
2 Add--T-short-form-for---title.patch