Commit Graph

1326 Commits

Author SHA1 Message Date
Ashish Kumar Yadav 54cf78ab24 This is more appropriate - tresize 2021-07-30 12:30:01 +05:30
Ashish Kumar Yadav f10e350434 Cleanup; renamed st-0.8.4 to st 2021-07-29 21:14:52 +05:30
Ashish Kumar Yadav 962220732b Changed defaultclass 2021-07-29 20:53:37 +05:30
Ashish Kumar Yadav 3138d93aa2 Fixed tresize regarding cursor movement, cleanup
Resizing used to throw the cursor around creating empty lines in
history buffer and the screen. This fixes that.
2021-07-29 19:43:14 +05:30
Ashish Kumar Yadav a65b75d4ff Simplified newterm and removed unnecessary workaround
changind directory and setting PWD env does the job

See fe6cf64326 and
1864d67dac
2021-07-29 16:56:13 +05:30
Ashish Kumar Yadav 5c4ad63c41 Made class hints configurable 2021-07-29 03:48:14 +05:30
Ashish Kumar Yadav 8a9dcbd530 Cleanup; Do clear screen handling the alacritty way 2021-07-29 03:27:32 +05:30
Ashish Kumar Yadav ed137cbb84 Fixed bug in tresize related to scrolling; optimization? 2021-07-29 02:43:06 +05:30
Ashish Kumar Yadav 9f55d579fe Cleanup (kscrolldown is not required, tscrollup is enough 2021-07-29 01:42:53 +05:30
Ashish Kumar Yadav 2aecf97563 Don't cut content on resizing, bug fixes, cleanup
1) Fixed bug in tscrollup if (s > 0 && .. branch

2) Fixed bug in clearregion in checking for selection

3) Implemented column patch to scrollback
   (https://github.com/juliusHuelsmann/st-history-vim/releases/download/tmpColDraft/0001-feat-create-column-patch-equivalent-for-unpatched-st.patch)
   It prevent cutting of content when resizing

4) Added to that missing selclear, when selection goes in not-visible region
2021-07-29 00:44:29 +05:30
Ashish Kumar Yadav 8d5e93678a Cleanup, improved and fixed scrolling
1) Fixed bug from last commit regarding selscroll
    When history is not going to be saved, selscroll should be used.

2) Don't scroll in altscreen

3) term.histf to not scroll when history is not available

4) Screen goes to history when clearing

5) Resizing doesn't mess up history
2021-07-28 20:37:42 +05:30
Ashish Kumar Yadav 49e814005c Revert "Applied changes by beyondmagic to scrollback"
This reverts commit 7672445bab.
2021-07-28 01:44:00 +05:30
Ashish Kumar Yadav 7c257e323c Cleanup, bug fixes and improvements
1) tscrolldown should never copyhist
    It used to do in RI esc escape, but it should not do it there.
    That causes history erasal.

2) improved selection
    Now more than a page content can be selected.

3) fixed history copying in tscrollup

4) improved kscrollup and kscrolldown
2021-07-28 01:39:28 +05:30
Ashish Kumar Yadav caa571bd4e Fixed bug from last commit 2021-07-27 03:51:21 +05:30
Ashish Kumar Yadav b32a755876 -T now fixes the title 2021-07-27 03:17:24 +05:30
Ashish Kumar Yadav 27772dfbfe Nothing 2021-07-25 19:06:04 +05:30
Ashish Kumar Yadav 60ec89c717 Cleanup - PKGBUILD, config.mk 2021-07-25 18:49:54 +05:30
Ashish Kumar Yadav e2caf4aebf Changed ST_NEWTERM_PWD to NEWTERM_PWD 2021-07-25 16:31:03 +05:30
Ashish Kumar Yadav 2c5dfb65d3 Added TryExec to desktop file 2021-07-25 15:36:59 +05:30
Ashish Kumar Yadav fe6cf64326 Workaround for chdir resolving symlinks 2021-07-25 11:00:35 +05:30
Ashish Kumar Yadav 22e70e49ef Revert "Increased latency to prevent ranger flickering"
This reverts commit 54c8d61f1d.
Flickering was due to added treset on resize
2021-07-24 20:38:34 +05:30
Ashish Kumar Yadav e7a48f32e1 Added TODO.md 2021-07-24 20:30:39 +05:30
Ashish Kumar Yadav 54c8d61f1d Increased latency to prevent ranger flickering 2021-07-24 20:29:35 +05:30
Ashish Kumar Yadav 4d8db8a6ad stat is the right choice; lstat fails for symbolic link CWDs 2021-07-23 23:52:51 +05:30
Ashish Kumar Yadav 48b8917e7d Naive fix for "altscreen content in scrollback history" issue 2021-07-23 19:30:36 +05:30
Ashish Kumar Yadav b14f78dc6d col and row are always MAX(_, 1) 2021-07-23 17:25:13 +05:30
Ashish Kumar Yadav a930f17091 Applied custom mouse scrolling with altscreen 2021-07-23 02:24:04 +05:30
Ashish Kumar Yadav 7672445bab Applied changes by beyondmagic to scrollback
Somehow prevents history buffer loss.
2021-07-23 01:43:50 +05:30
Ashish Kumar Yadav 5814cf3adf Applied scrollback patch 2021-07-23 00:40:21 +05:30
Ashish Kumar Yadav 0d5254752d Increased latency (avoids neomutt flicker) 2021-07-22 20:52:02 +05:30
Ashish Kumar Yadav 7e836f543a Extra colors are of no use 2021-07-22 19:31:03 +05:30
Ashish Kumar Yadav a7612de512 Updated selectionbg and selectionfg 2021-07-22 13:25:07 +05:30
Ashish Kumar Yadav 31af82f907 Added keyword simple to desktop entry 2021-07-22 13:22:14 +05:30
Ashish Kumar Yadav 5f16763ffc Upstream update
2ec571a30c0c3b1a17f6b3631c80d573582f59a1

The bits of uint signal in an XKeyEvent which concern the key group (keyboard
layout) are bits 13 and 14, as documented here:
https://www.x.org/releases/X11R7.7/doc/libX11/XKB/xkblib.html#Groups_and_Shift_Levels
In the older version, only bit 13 was marked as part of XK_SWITCH_MOD, this
causes issues for users who have more than two keymaps. the 14th bit is not
in ignoremod, key sequences are not caught by match(), if they switch to a third
or fourth keyboard.
2021-07-22 13:06:39 +05:30
Ashish Kumar Yadav f46c47ee84 Improved desktop entry (used archwiki) 2021-07-22 12:41:37 +05:30
Ashish Kumar Yadav 1864d67dac Custom newterm patch
Launches st in the present working directory.
The shell should be configured in a way to send the present working
directory to the terminal by the OSC 7 on every cd, for e.g. as
`printf "\033]7;%s\033\\" "$PWD"`.
2021-07-22 03:07:05 +05:30
Ashish Kumar Yadav dbb5570187 Changed background color 2021-07-21 23:40:40 +05:30
Ashish Kumar Yadav 8c368a0054 Added cflags to config.mk 2021-07-21 23:35:27 +05:30
Ashish Kumar Yadav 992fc4e540 Commented unused function 2021-07-21 23:29:30 +05:30
Ashish Kumar Yadav dd8067b901 st-selectioncolors patch 2021-07-21 23:15:11 +05:30
Ashish Kumar Yadav 1fe0f6fe71 st-swapmouse patch 2021-07-21 22:56:45 +05:30
Ashish Kumar Yadav 997e913d3d Personal customizations 2021-07-21 22:56:26 +05:30
Ashish Kumar Yadav a3901ec1e9 Added .gitignore 2021-07-21 22:37:48 +05:30
Ashish Kumar Yadav d2837b0942 Use relative symlink - config.h 2021-07-21 22:34:49 +05:30
Ashish Kumar Yadav 67c2ac209e Initialized my custom build 2021-07-21 22:26:19 +05:30
Markus F.X.J. Oberhumer 4536f46cff Mild const-correctness improvements.
Only touch a few things, the main focus is to
improve code readability.
2021-05-06 18:21:10 +02:00
Hiltjo Posthuma 9e68fdbcdb fix: correctly encode mouse buttons >= 8 in X10 and SGR mode
These are typically mapped in X11 to the side-buttons (backward/forwards) on
the mouse. A comparison of the button numbers in SGR mode (first field):

st old:
0 1 2 64 65 66 67 68 69 70

st new (it is the same as xterm now):
0 1 2 64 65 66 67 128 129 130

A script to test and reproduce it, first argument is "h" (on) or "l" (off):

	#!/bin/sh
	printf '\x1b[?1000%s\x1b[?1006%s' "$1" "$1"

	for n in 1 2 3 4 5 6 7 8 9 10; do
		printf 'button %d\n' "$n"
		xdotool click "$n"
		printf '\n\n'
	done
2021-03-19 11:58:59 +01:00
Hiltjo Posthuma 4ef0cbd8b9 remove unused variable from previous patch 2020-10-18 11:18:03 +02:00
John Collis 28b4c822c5 ST: Add WM_ICON_NAME property support
Also added _NET_WM_ICON_NAME.
2020-10-18 11:17:11 +02:00
Hiltjo Posthuma fa253f077f bump version to 0.8.4 2020-06-19 11:27:17 +02:00