Skip to content

addonWorkshop/devBox

Repository files navigation

Dev Box

This addon contains some features that are primarily useful for software developers, but may also be useful for other users who work with text.

Features

Space folding

Let's look at this line from the ls utility manual.

--sort=WORD            sort by WORD instead of name: none (-U), size (-S),

You can see that there are 12 spaces in the middle, and nvda will skip them when reading the line as usual, but what if we want to read the line character by character?

Pressing nvda+up or nvda+numpad8 twice will read all the spaces one by one, which is usually not very convenient.

This addon detects 2 or more consecutive spaces, and folds them into a short sequence.

For example "space space space space space" becomes "5 space".

Diff indication

When navigating through an object using numpad7 or numpad9, the addon checks for a diff character at the beginning of the line.

The space is ignored, for the plus or minus a sound is played, to make addition/deletion easy to identify.

The sounds are taken from vscode, they are also slightly modified (a small amount of silence at the beginning and end is cut off).

Line length checking

This feature allows to find out the length of the line under cursor, it can be useful when formatting code or any other text. Gesture is unassigned by default.

Get second in the current minute

Can be useful for an approximate measurement of time intervals from a few seconds to a couple of minutes.

For example, you can debug a non-optimized program, the execution of a part of which takes a long time.

Suppose you launched the process and checked the second, you received the number 5.

When the process ended, you again requested the value of a second: 30.

Thus, the program hung for about 25 seconds, you can improve the code and take similar measurements again.

Also could be used for more accurate setting of the clock, which resets seconds to zero when applying settings.

Of course, you can simply enable the display of seconds in Windows settings, but in some cases it is convenient to immediately get the most actual value without listening information about the hour and minute.

nvda+ctrl+f12 is bound by default.


All passive features, like space folding, is disabled by default, they could be enabled in addon settings.

Change log

0.2.0

Script for reporting current second was added.