Questions tagged [edit]

to modify (a computer file) by, for example, deleting, inserting, moving, or copying text.

Edit can be done as part of coding or changing configuration files.

The tool which is used for editing is called an Editor. Common editors include vi, emacs etc.

3207 questions
19
votes
8 answers

How to go to last edit location in Android Studio

How to go to last edit location/s in android studio? Clicking the back arrow in the toolbar makes you travel within your navigation history. But I want to travel within my edition history i.e. navigate through the last change/s I made in…
Shirish Herwade
  • 11,461
  • 20
  • 72
  • 111
18
votes
4 answers

Visual block edit in vim

I have refer to this post to use block editing in vim. But when I key I or c after the block select, vim enters the normal edit mode just as if I pressed a i. I also found, when block is selected, I can use the x key to delete chars in the…
LF00
  • 27,015
  • 29
  • 156
  • 295
16
votes
6 answers

thymeleaf multiple selected on edit

I am totally changing this question, as part of it was answered here with great help of Avnish! Tom sent me to the right direction so thank you Tom! My problem is that I do not know how to tell Thymeleaf to preselect object elements when editing…
Blejzer
  • 1,121
  • 2
  • 12
  • 26
15
votes
4 answers

MATLAB: Changing the line properties of a loaded figure?

I've got a very simple question, for MATLAB users: If I load a figure file (.fig) with the load command, is there any way to change the plotted lines properties from the command line? (width, color, marker, etc.) PD: The first two options according…
aarelovich
  • 5,140
  • 11
  • 55
  • 106
15
votes
1 answer

jqgrid incorrect select drop down option values in edit box

I am using form edit. There are two select boxes in the form. One select box is the country, another select box is the state. The state select box depends on the country selected and will be populated dynamically. For example: Country: US (option…
Alex
  • 253
  • 2
  • 3
  • 10
15
votes
2 answers

Adding a path to the .bashrc file?

At the moment I am trying to add a path for ns-2 to my .bashrc file, I have installed the ns-allinone-2.34 but the command ns gives the result: command not found when entered into the shell. Here is what my .bashrc file currently looks like, I…
user1825241
  • 846
  • 4
  • 9
  • 17
14
votes
3 answers

Removing all fuzzy entries of a PO file

Does anyone know a method to mass delete all fuzzy translations from a PO file. Something like: if #, fuzzy == TRUE Then SET msgstr="" AND REMOVE #, fuzzy
Martijn Burger
  • 7,315
  • 8
  • 54
  • 94
14
votes
2 answers

jq replace part of value in json

I need to replace part of a value from a json output. I could easily do this using sed -i however it would also replace other parts of the file I don't want it to, unless I'm missing something. The output is { "LastModified":…
Ryan Loeffler
  • 143
  • 1
  • 1
  • 5
13
votes
7 answers

Change all characters in a column over multiple lines

I'm not sure how to explain what I'd like to do, but I've seen this in Textmate and it was quite useful. Let's say I have this text: :aa => foo, :ab => foo, :ac => foo, :ad => foo Now I want to select all first characters of the keys (the 4 'a' in…
Lennart Koopmann
  • 826
  • 1
  • 8
  • 14
13
votes
2 answers

Swift - UITableView editActionsForRowAtIndexPath open UIPresentationController when click Edit

Hi is there any way to open an UIPresentationController when swipe left is triggered and it's click Edit ? func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? { let…
Bogdan Bogdanov
  • 882
  • 11
  • 36
  • 79
12
votes
1 answer

How to make a DataGridCheckBoxColumn editable without requiring extra clicks?

WPF's DataGrid requires a double click to enter cell editing mode, and then the user can change the checkbox value. How to make a cell editable without requiring the double click for entering the edit mode?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
12
votes
2 answers

Convert bash array to json array and insert to file using jq

Given a bash array, how to convert it to a JSON array in order to output to a file with jq? Additionnally: is there a way to keep the server_nohup array unchanged instead of re-writing the whole json file each time? newArray=(100 200 300) jq -n…
user6198643
12
votes
7 answers

How to change an element in a list in erlang

I have a list which I have used the function lists:nth() on to return the value of an element at a certain index. Does anyone know how I can edit this value? EDIT: Here is a bit more information. Say I had a list L which represents a line of a text…
MulletDevil
  • 919
  • 2
  • 8
  • 16
12
votes
3 answers

How do I add a custom action to the text selection edit menu in iOS?

I need to add a custom action to the edit menu that pops up when a user selects some text in a UITextView in iOS. How do I do this?
TomLisankie
  • 3,785
  • 7
  • 28
  • 32
12
votes
2 answers

How to edit a binary file's hex value using C#

So here's my issue. I have a binary file that I want to edit. I can use a hex editor to edit it of course, but I need to make a program to edit this particular file. Say that I know a certain hex I want to edit, I know it's address etc. Let's say…
JC Leyba
  • 502
  • 3
  • 7
  • 17